mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
theme: also make content format-aware #308
This commit is contained in:
parent
c73d64b0a7
commit
55f7624fe4
2 changed files with 2 additions and 2 deletions
|
@ -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" .) }}
|
|
@ -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")) }}
|
||||
|
|
Loading…
Reference in a new issue