From 74cd1cce00178f1c016507ece85c7e4ab2993e04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Tue, 13 Feb 2024 23:20:23 +0100 Subject: [PATCH] theme: wildspace --- layouts/partials/nested-article.hugo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/nested-article.hugo b/layouts/partials/nested-article.hugo index b4c2469ada..2dada9901f 100644 --- a/layouts/partials/nested-article.hugo +++ b/layouts/partials/nested-article.hugo @@ -3,7 +3,7 @@ {{- $page.Page.Store.Set (printf "%sIsNested" $outputFormat) true }} {{- with $page }} {{- $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 }} {{- if $pages }}
@@ -23,7 +23,7 @@ {{- with .sect }} {{- $isSelf := eq .RelPermalink $currentFileRelPermalink }} {{- $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 }} {{- $hidden := and $relearnIsHiddenFrom (not $.showhidden) (not $isSelf) (not $isAncestor) }} {{- if $hidden }}