From 05d1192cdef14481ce2050fbae7a888322200322 Mon Sep 17 00:00:00 2001 From: Ivan Duka <39438519+ivanduka@users.noreply.github.com> Date: Mon, 26 Sep 2022 01:46:34 -0600 Subject: [PATCH] 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. --- content/en/content-management/diagrams.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" }}