From 97395d876cce68513dc29416cec937a32765df15 Mon Sep 17 00:00:00 2001 From: Track3 Date: Mon, 31 Dec 2018 15:20:34 +0800 Subject: [PATCH] Slightly improve accessibility * Add `title` attribute to some buttons or icons --- i18n/en.toml | 8 ++++++++ i18n/zh-hans.toml | 8 ++++++++ layouts/partials/header.html | 6 +++--- layouts/partials/social-icons.html | 2 +- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/i18n/en.toml b/i18n/en.toml index de033a9..1b09bfc 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -25,3 +25,11 @@ other = "Newer" [older] other = "Older" + +# partials/header.html +# +[menu] +other = "Menu" + +[featuredImage] +other = "Featured Image" diff --git a/i18n/zh-hans.toml b/i18n/zh-hans.toml index eddd8ba..8884b93 100644 --- a/i18n/zh-hans.toml +++ b/i18n/zh-hans.toml @@ -25,3 +25,11 @@ other = "新" [older] other = "旧" + +# partials/header.html +# +[menu] +other = "菜单" + +[featuredImage] +other = "特色图片" diff --git a/layouts/partials/header.html b/layouts/partials/header.html index ae1a9a8..9eb24f2 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -12,15 +12,15 @@
{{ with .Params.featuredImg -}} - + {{- end }} {{- with .Params.toc -}} - + {{- end }} {{- with .Site.Params.social -}} {{ partialCached "social-icons.html" . }} {{- end -}} - +
diff --git a/layouts/partials/social-icons.html b/layouts/partials/social-icons.html index 5df3d55..5c4282a 100644 --- a/layouts/partials/social-icons.html +++ b/layouts/partials/social-icons.html @@ -1,3 +1,3 @@ {{ range . -}} -{{ partial "svg.html" . }} +{{ partial "svg.html" . }} {{- end -}}