aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/header.html
diff options
context:
space:
mode:
authorOlivier Roques <ojroques@users.noreply.github.com>2021-04-13 17:45:33 +0200
committerGitHub <noreply@github.com>2021-04-13 17:45:33 +0200
commit9cf4599276a1dcdeac9ff81014a140ca4fdfb93c (patch)
treeb083188a2b26a174f680c49cee0b700a7a0f59f5 /layouts/partials/header.html
parent8d17170d2a4e46c4168bbff9b4c6afe8f19a5fec (diff)
parent8dc6305c6b1dddd57ed2fbe6edb5335b57d305ff (diff)
Merge pull request #17 from jcabak/master
Accessibility and SEO improvements
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 37f5259..b017ee2 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,6 +1,6 @@
<div class="container mt-5">
<nav class="navbar navbar-expand-sm flex-column flex-sm-row text-nowrap p-0">
- <a class="navbar-brand mx-0 mr-sm-auto" href="{{ .Site.BaseURL }}">
+ <a class="navbar-brand mx-0 mr-sm-auto" href="{{ .Site.BaseURL }}" title="{{ .Site.Title }}">
{{ with .Site.Params.logo }}
<img src="{{ . | absURL }}" alt="logo">
{{ end }}
@@ -10,7 +10,7 @@
{{ with .Site.Menus.main }}
{{ $navbar_len := len . }}
{{ range $i, $nav_item := . }}
- <a class="nav-item nav-link" href="{{ $nav_item.URL }}">
+ <a class="nav-item nav-link" href="{{ $nav_item.URL }}" title="{{ $nav_item.Name }}">
{{ $nav_item.Pre }}{{ $nav_item.Name }}{{ $nav_item.Post }}
</a>
{{ if ne (add $i 1) $navbar_len }}