mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
theme: wildspace
This commit is contained in:
parent
de97e8bb5f
commit
74cd1cce00
1 changed files with 2 additions and 2 deletions
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue