aboutsummaryrefslogtreecommitdiff
path: root/themes/hugo-pt2021/layouts
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2021-10-16 11:41:36 -0400
committerPaul Duncan <pabs@pablotron.org>2021-10-16 11:41:36 -0400
commitf36ca347c53f173204bda6f9d93e90a655d596ac (patch)
tree18bed51f88ea8086c414269ae87d615380387c4e /themes/hugo-pt2021/layouts
parent3558c8b6d2cb59121e5295b7ae2505bb5d829acf (diff)
downloadpablotron.org-f36ca347c53f173204bda6f9d93e90a655d596ac.tar.bz2
pablotron.org-f36ca347c53f173204bda6f9d93e90a655d596ac.zip
s/page_id/menu/, do not highlight menu entry when viewing content in section
Diffstat (limited to 'themes/hugo-pt2021/layouts')
-rw-r--r--themes/hugo-pt2021/layouts/partials/header.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/hugo-pt2021/layouts/partials/header.html b/themes/hugo-pt2021/layouts/partials/header.html
index a51197b..20abe46 100644
--- a/themes/hugo-pt2021/layouts/partials/header.html
+++ b/themes/hugo-pt2021/layouts/partials/header.html
@@ -35,7 +35,7 @@
{{- range $.Site.Data.menu.start -}}
<a
href='{{.href}}'
- class='navbar-item {{if eq .id $.Params.page_id}}has-text-weight-bold{{end}}'
+ class='navbar-item {{if eq .id $.Params.menu}}has-text-weight-bold{{end}}'
title='{{.help}}'
aria-label='{{.help}}'
>
@@ -61,7 +61,7 @@
{{- range $.Site.Data.menu.end -}}
<a
href='{{.href}}'
- class='navbar-item {{if eq .id $.Params.page_id}}is-active{{end}}'
+ class='navbar-item {{if eq .id $.Params.menu}}is-active{{end}}'
title='{{.help}}'
aria-label='{{.help}}'
>