diff --git a/layouts/partials/header/header-mobile-option-nested.html b/layouts/partials/header/header-mobile-option-nested.html index 9670c36e..3614e496 100644 --- a/layouts/partials/header/header-mobile-option-nested.html +++ b/layouts/partials/header/header-mobile-option-nested.html @@ -1,6 +1,7 @@
@@ -31,6 +32,7 @@ {{ if or (strings.HasPrefix .URL "http:" ) (strings.HasPrefix .URL "https:" ) }} target="_blank" {{ end }} + {{ with or .Name .Pre }}aria-label="{{ . }}"{{ end }} class="flex items-center hover:text-primary-600 dark:hover:text-primary-400"> {{ if .Pre }} diff --git a/layouts/partials/header/header-option-simple.html b/layouts/partials/header/header-option-simple.html index cde2be4a..a9a87870 100644 --- a/layouts/partials/header/header-option-simple.html +++ b/layouts/partials/header/header-option-simple.html @@ -2,6 +2,7 @@ href="{{ .URL }}" {{ if or (strings.HasPrefix .URL "http:" ) (strings.HasPrefix .URL "https:" ) }}target="_blank"{{ end }} class="flex items-center hover:text-primary-600 dark:hover:text-primary-400" + {{ with or .Name .Pre }}aria-label="{{ . }}"{{ end }} title="{{ .Title }}"> {{ if .Pre }}