- {{ section.extra.lead | default(value="Please start setting config.toml and adding - your content.") | safe }} + {{ section.extra.lead | default(value="You need to add some content") | safe }}
-diff --git a/content/_index.md b/content/_index.md index e4cfdaf..2bf29bd 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,5 +1,5 @@ +++ -title = "Elf's Notes" +title = "Brains!!!" # The homepage contents [extra] diff --git a/content/docs/zola/_index.md b/content/docs/zola/_index.md index 7919769..cd92f55 100644 --- a/content/docs/zola/_index.md +++ b/content/docs/zola/_index.md @@ -76,7 +76,12 @@ block, and it can define subsections (note: section is a heavily overloaded word) of itself. These blocks can be used as-is, or replaced when another template inherits them and overwrites them. +#### `extends` +The `extends` keyword imports one template into another. A file that `extends` +that import then provides its own overrides for blocks found in the imported +templated, substituting its own content and processing for that of the extended +template. #### `set` @@ -143,6 +148,9 @@ the list in reverse order. {% for name in users | reverse %}{{ name }}{% endfor %} ``` +Loops have `continue` and `break` statements that can be invoked inside `if` +blocks. + #### `include` Include other content into the current template being rendered. Include strings @@ -179,13 +187,9 @@ And an example of this macro (again, in the `header.html` file) would look like
- {{ section.extra.lead | default(value="Please start setting config.toml and adding - your content.") | safe }} + {{ section.extra.lead | default(value="You need to add some content") | safe }}
-