mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-02 03:32:38 +00:00
Update diagrams.md (#1823)
Make it a bit more explicit that the variable won't be set until `.Content` that contains the render hook is processed.
This commit is contained in:
@@ -61,7 +61,7 @@ Hugo currently does not provide default templates for Mermaid diagrams. But you
|
||||
{{ .Page.Store.Set "hasMermaid" true }}
|
||||
```
|
||||
|
||||
And then include this snippet at the bottom of the content template (below `.Content`):
|
||||
And then include this snippet at the bottom of the content template (**Note**: below `.Content` as the render hook is not processed until `.Content` is executed):
|
||||
|
||||
```go-html-template
|
||||
{{ if .Page.Store.Get "hasMermaid" }}
|
||||
|
||||
Reference in New Issue
Block a user