theme: wildspace

This commit is contained in:
Sören Weber 2024-02-13 23:20:23 +01:00
parent de97e8bb5f
commit 74cd1cce00
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -3,7 +3,7 @@
{{- $page.Page.Store.Set (printf "%sIsNested" $outputFormat) true }} {{- $page.Page.Store.Set (printf "%sIsNested" $outputFormat) true }}
{{- with $page }} {{- with $page }}
{{- $currentNode := . }} {{- $currentNode := . }}
{{- $pages := partial "pageHelper/pagesBy.html" (dict "page" . "hidden" true) }} {{- $pages := partial "pageHelper/pagesBy.html" (dict "page" . "hidden" true) }}
{{- template "section-print" dict "sect" . "currentnode" $currentNode "outputFormat" $outputFormat }} {{- template "section-print" dict "sect" . "currentnode" $currentNode "outputFormat" $outputFormat }}
{{- if $pages }} {{- if $pages }}
<section> <section>
@ -23,7 +23,7 @@
{{- with .sect }} {{- with .sect }}
{{- $isSelf := eq .RelPermalink $currentFileRelPermalink }} {{- $isSelf := eq .RelPermalink $currentFileRelPermalink }}
{{- $isAncestor := and (not $isSelf) (.IsAncestor $currentNode) }} {{- $isAncestor := and (not $isSelf) (.IsAncestor $currentNode) }}
{{- $pages := partial "pageHelper/pagesBy.html" (dict "page" . "hidden" true) }} {{- $pages := partial "pageHelper/pagesBy.html" (dict "page" . "hidden" true) }}
{{- $relearnIsHiddenFrom := index ($currentNode.Scratch.Get "relearnIsHiddenFrom") .RelPermalink }} {{- $relearnIsHiddenFrom := index ($currentNode.Scratch.Get "relearnIsHiddenFrom") .RelPermalink }}
{{- $hidden := and $relearnIsHiddenFrom (not $.showhidden) (not $isSelf) (not $isAncestor) }} {{- $hidden := and $relearnIsHiddenFrom (not $.showhidden) (not $isSelf) (not $isAncestor) }}
{{- if $hidden }} {{- if $hidden }}