From 74e4d136733b98d59be509bcb7bd58d70db892fa Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 16 Nov 2022 09:36:44 +0100 Subject: [PATCH] fix: fix access to data assets in render hook (#539) Site variables in markdown render hooks or partials need to be accessed via global site function or .Page object. --- layouts/_default/_markup/render-codeblock-mermaid.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/_markup/render-codeblock-mermaid.html b/layouts/_default/_markup/render-codeblock-mermaid.html index ee40ce9..4b1b591 100644 --- a/layouts/_default/_markup/render-codeblock-mermaid.html +++ b/layouts/_default/_markup/render-codeblock-mermaid.html @@ -1,7 +1,7 @@ {{ if not (.Page.Scratch.Get "mermaid") }} - + {{ .Page.Scratch.Set "mermaid" true }} {{ end }}