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:
Ivan Duka authored and GitHub committed 2022-09-26 09:46:34 +02:00
1 parent 3c43a8bbe8
commit 05d1192cde
1 file changed
+1 -1
+1 -1
View File
@@ -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" }}