diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-11-16 22:00:50 +0100 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-11-16 22:00:50 +0100 |
commit | 20c3faae4d6ff0bf842d0a947e9932ea98b56d48 (patch) | |
tree | d2050f2f938de84c1aef9e60ccc3eb2d43d6fd5c /layouts/partials/docs | |
parent | f1d4aeb69a6cc185c84981f79402baa6ed8ba354 (diff) |
Improve accessibility score
Diffstat (limited to 'layouts/partials/docs')
-rw-r--r-- | layouts/partials/docs/html-head.html | 1 | ||||
-rw-r--r-- | layouts/partials/docs/languages.html | 4 | ||||
-rw-r--r-- | layouts/partials/docs/search.html | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index b9df8d9..b280ef9 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -1,5 +1,6 @@ <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> +<meta name="description" content="{{ partial "docs/title" . }}"> {{- template "_internal/opengraph.html" . -}} <title>{{ partial "docs/title" . }} | {{ .Site.Title -}}</title> diff --git a/layouts/partials/docs/languages.html b/layouts/partials/docs/languages.html index 543cdff..1666215 100644 --- a/layouts/partials/docs/languages.html +++ b/layouts/partials/docs/languages.html @@ -11,7 +11,7 @@ <ul> <li class="flex"> - <img src="{{ "svg/translate.svg" | relURL }}" /> + <img src="{{ "svg/translate.svg" | relURL }}" alt="Languages" /> {{ $.Site.Language.LanguageName }} </li> </ul> @@ -20,7 +20,7 @@ {{ range sort $langs }} <li class="{{ if (eq $.Site.Language .Language ) }}active{{ end }}"> <a href="{{ .Permalink }}" class="flex"> - <img src="{{ "svg/translate.svg" | relURL }}" /> + <img src="{{ "svg/translate.svg" | relURL }}" alt="Languages" /> {{ .Language.LanguageName }} </a> </li> diff --git a/layouts/partials/docs/search.html b/layouts/partials/docs/search.html index 5c8b912..bb1fa76 100644 --- a/layouts/partials/docs/search.html +++ b/layouts/partials/docs/search.html @@ -1,6 +1,6 @@ {{ if default true .Site.Params.BookSearch }} <div class="book-search"> - <input type="text" placeholder="{{ i18n "Search" }}" id="book-search-input" maxlength="64" /> + <input type="text" id="book-search-input" placeholder="{{ i18n "Search" }}" aria-label="{{ i18n "Search" }}" maxlength="64" /> <div class="book-search-spinner spinner hidden"></div> <ul id="book-search-results"></ul> </div> |