From 4934d58624ae825aaff2103cdd9abc63c7ee1ee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sun, 6 Nov 2022 10:01:53 +0100 Subject: [PATCH] theme: fix context in render hooks #373 --- layouts/_default/_markup/render-codeblock-math.html | 2 +- layouts/_default/_markup/render-codeblock-mermaid.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/_markup/render-codeblock-math.html b/layouts/_default/_markup/render-codeblock-math.html index 29d2a597e1..566b662035 100644 --- a/layouts/_default/_markup/render-codeblock-math.html +++ b/layouts/_default/_markup/render-codeblock-math.html @@ -1,5 +1,5 @@ {{- partial "shortcodes/math.html" (dict - "context" . + "context" .Page "content" .Inner "align" (index .Attributes "align") ) }} \ No newline at end of file diff --git a/layouts/_default/_markup/render-codeblock-mermaid.html b/layouts/_default/_markup/render-codeblock-mermaid.html index b3ba7d7973..196cac09f1 100644 --- a/layouts/_default/_markup/render-codeblock-mermaid.html +++ b/layouts/_default/_markup/render-codeblock-mermaid.html @@ -1,5 +1,5 @@ {{- partial "shortcodes/mermaid.html" (dict - "context" . + "context" .Page "content" .Inner "align" (index .Attributes "align") ) }} \ No newline at end of file