mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-10-30 01:13:08 +00:00
docs: Clarify optional template block behaviour
This commit is contained in:
parent
779cd8571c
commit
7ec407b8a3
|
@ -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" }}
|
||||
|
|
Loading…
Reference in a new issue