diff options
author | Ivan Duka <39438519+ivanduka@users.noreply.github.com> | 2022-09-26 10:46:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-26 10:46:34 +0300 |
commit | 05d1192cdef14481ce2050fbae7a888322200322 (patch) | |
tree | 60ff34862976b108b659a868e220ed1bc1fcbf55 | |
parent | 3c43a8bbe8fd333b3f82f3f2e66dbfcc43bca86b (diff) |
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.
-rw-r--r-- | content/en/content-management/diagrams.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/en/content-management/diagrams.md b/content/en/content-management/diagrams.md index 243a70fd4..7c12d7fff 100644 --- a/content/en/content-management/diagrams.md +++ b/content/en/content-management/diagrams.md @@ -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" }} |