I am trying to rebuild a blog in Jekyll and I have stubled upon a simple task.
Provided I have the following set of templates:
default.html:
If your use-case is like mine and you want to include add'l content inside your template, you can include multiline content from your front matter into the template using YAML's block scalar feature. A |
keeps line-breaks while a >
removes ("folds") line-breaks. (Note that the block indicator must be followed by a blank line.)
index.html
---
layout: default
head: |
script: |
---
default.html
{{page.title}}
{{ page.head }}
{{content}}
{{page.script}}