aboutsummaryrefslogtreecommitdiff
path: root/themes/hugo-pt2021/layouts/partials/header.html
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2021-10-15 09:08:15 -0400
committerPaul Duncan <pabs@pablotron.org>2021-10-15 09:08:15 -0400
commit1561e3f458ea62a393208c521f72935fdceabd3f (patch)
tree2372c0de8b115279b99714c8f785d1ff3495229f /themes/hugo-pt2021/layouts/partials/header.html
parent7a9f15f2d8831baf4654e5fe9845405198348e15 (diff)
downloadpablotron.org-1561e3f458ea62a393208c521f72935fdceabd3f.tar.bz2
pablotron.org-1561e3f458ea62a393208c521f72935fdceabd3f.zip
hugo-pt2021: parameterize icon size
Diffstat (limited to 'themes/hugo-pt2021/layouts/partials/header.html')
-rw-r--r--themes/hugo-pt2021/layouts/partials/header.html22
1 files changed, 15 insertions, 7 deletions
diff --git a/themes/hugo-pt2021/layouts/partials/header.html b/themes/hugo-pt2021/layouts/partials/header.html
index f93073b..513e62a 100644
--- a/themes/hugo-pt2021/layouts/partials/header.html
+++ b/themes/hugo-pt2021/layouts/partials/header.html
@@ -1,3 +1,5 @@
+{{- $icon_width := 20 -}}
+{{- $icon_height := 20 -}}
<nav class='navbar is-black' role='navigation' aria-label='main navigation'>
<div class='navbar-brand'>
<a
@@ -6,10 +8,12 @@
title='home page'
aria-label='home page'
>
- <img src='/logo.svg'
+ <img
+ src='/logo.svg'
width='37'
height='28'
- title='logo'
+ title='site logo'
+ aria-label='site logo'
/>
</a><!-- navbar-item -->
@@ -38,9 +42,11 @@
{{- if .icon -}}
<img
src='{{.icon}}'
- width='20'
- height='20'
+ class='menu-icon'
+ width='{{$icon_width}}'
+ height='{{$icon_height}}'
title='{{.help}}'
+ aria-label='{{.help}}'
/>
{{- end -}}
@@ -62,9 +68,11 @@
{{- if .icon -}}
<img
src='{{.icon}}'
- width='20'
- height='20'
+ class='menu-icon'
+ width='{{$icon_width}}'
+ height='{{$icon_height}}'
title='{{.help}}'
+ aria-label='{{.help}}'
/>
{{- end -}}
@@ -73,6 +81,6 @@
{{- end -}}
</a><!-- navbar-item -->
{{- end -}}
- </div><!-- navbar-start -->
+ </div><!-- navbar-end -->
</div><!-- navbar-menu -->
</nav><!-- navbar -->