aboutsummaryrefslogtreecommitdiff
path: root/themes/hugo-pt2021
diff options
context:
space:
mode:
Diffstat (limited to 'themes/hugo-pt2021')
-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 -->