diff options
author | Paul Duncan <pabs@pablotron.org> | 2021-10-17 19:52:10 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2021-10-17 19:52:10 -0400 |
commit | ba930dfe0ec42e181000a4e2c460805fceeb2d9a (patch) | |
tree | 59456802f7534cc0dac0fe2584eaed1638ca7243 /themes/hugo-pt2021/layouts/partials/header.html | |
parent | a3e0e3d86e0d2257c4ac5eff458a5605191ec533 (diff) | |
download | pablotron.org-ba930dfe0ec42e181000a4e2c460805fceeb2d9a.tar.bz2 pablotron.org-ba930dfe0ec42e181000a4e2c460805fceeb2d9a.zip |
add menu script, fix menu rendering on mobile
Diffstat (limited to 'themes/hugo-pt2021/layouts/partials/header.html')
-rw-r--r-- | themes/hugo-pt2021/layouts/partials/header.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/themes/hugo-pt2021/layouts/partials/header.html b/themes/hugo-pt2021/layouts/partials/header.html index 20abe46..cdeebb9 100644 --- a/themes/hugo-pt2021/layouts/partials/header.html +++ b/themes/hugo-pt2021/layouts/partials/header.html @@ -30,7 +30,7 @@ </a> </div> - <div id='page-menu' class='navbar-menu'> + <div id='page-menu' class='navbar-menu is-black'> <div class='navbar-start'> {{- range $.Site.Data.menu.start -}} <a @@ -68,7 +68,7 @@ {{- if .icon -}} <img src='{{.icon}}' - class='menu-icon' + class='menu-icon is-hidden-touch' width='{{$icon_width}}' height='{{$icon_height}}' title='{{.help}}' @@ -77,7 +77,9 @@ {{- end -}} {{- if .name -}} - {{- .name -}} + <span class='is-hidden-desktop'> + {{- .name -}} + </span> {{- end -}} </a><!-- navbar-item --> {{- end -}} |