theme: also make content format-aware #308

This commit is contained in:
Sören Weber 2022-07-14 18:21:46 +02:00
parent c73d64b0a7
commit 55f7624fe4
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589
2 changed files with 2 additions and 2 deletions

View file

@ -3,6 +3,6 @@
{{- if not .File }}
{{- partial "output-partial.html" (dict "base" "body" "page" . "parameter" (dict "page" . "content" (partial "initial.html" .))) }}
{{- else }}
{{- partial "output-partial.html" (dict "base" "body" "page" . "parameter" (dict "page" . "content" (partial "content.html" .))) }}
{{- partial "output-partial.html" (dict "base" "body" "page" . "parameter" (dict "page" . "content" (partial "output-partial.html" (dict "base" "content" "page" . "parameter" .)))) }}
{{- end }}
{{- partial "output-partial.html" (dict "base" "footer" "page" . "parameter" .) }}

View file

@ -92,7 +92,7 @@
{{- $currentNode := .currentnode }}
{{- with .sect }}
{{- $page := . }}
{{- $content := partial "content.html" $page }}
{{- $content := partial "output-partial.html" (dict "base" "content" "page" . "parameter" $page) }}
{{- partial "output-partial.html" (dict "base" "output-article" "page" $page "parameter" (dict "page" $page "content" $content)) }}
{{- $currentNode.Page.Store.Set "nestedHasMathJax" (or ($currentNode.Page.Store.Get "nestedHasMathJax") (.Page.Store.Get "hasMathJax")) }}
{{- $currentNode.Page.Store.Set "nestedHasMermaid" (or ($currentNode.Page.Store.Get "nestedHasMermaid") (.Page.Store.Get "hasMermaid")) }}