docs: Clarify optional template block behaviour

This commit is contained in:
Edd Salkield 2022-10-31 16:33:31 +00:00 committed by adnano
parent 779cd8571c
commit 7ec407b8a3

View file

@ -213,8 +213,8 @@ See *TEMPLATE FUNCTIONS* for more information.
## BASE TEMPLATES
Base templates are inherited only by page and index templates. Base templates
generally define at least one block which can be customized by page and index
templates, according to the Go templating language.
generally define at least one block which can optionally be customized by page
and index templates, according to the Go templating language.
For example, the base template could contain:
@ -225,7 +225,8 @@ For example, the base template could contain:
{{ block "extra_content" . }}{{ end }}
```
The page and index templates can then customize these blocks, for example:
The page and index templates can then optionally customize these blocks, for
example:
```
{{ define "body" }}