From c2731993b8349e182615f3197f55b493dae1c150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Thu, 26 Aug 2021 23:28:50 +0200 Subject: [PATCH] menu: renaming var to streamline with other code #60 --- layouts/partials/menu.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 859a3bb63b..0d135d4efc 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -105,11 +105,11 @@ {{ $alwaysopen := .alwaysopen }} {{ with $currentNode.File }}{{ $currentFileUniqueID = .UniqueID }}{{ end }} {{with .sect}} - {{ $page_hidden := and (or (.Params.hidden) (eq .Title "")) (not $.showhidden) }} + {{ $hidden := and (or (.Params.hidden) (eq .Title "")) (not $.showhidden) }} {{if .IsSection }} {{safeHTML .Params.head}} {{ $currentAlwaysopen := .Params.alwaysopen | default $alwaysopen }} -
  • +
  • {{ partial "menu-pre.html" . }}{{or .Params.menuTitle .LinkTitle .Title}}{{ partial "menu-post.html" . }} {{ if $showvisitedlinks}}{{end}}