mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 18:18:37 +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:
1 parent
3c43a8bbe8
commit
05d1192cde
1 file changed
+1
-1
@@ -61,7 +61,7 @@ Hugo currently does not provide default templates for Mermaid diagrams. But you
|
|||||||
{{ .Page.Store.Set "hasMermaid" true }}
|
{{ .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
|
```go-html-template
|
||||||
{{ if .Page.Store.Get "hasMermaid" }}
|
{{ if .Page.Store.Get "hasMermaid" }}
|
||||||
|
|||||||
Reference in new issue
Block a user