From 43d406c4fed925661b11db85c9774d8dc876033e Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Tue, 23 Nov 2021 19:06:26 -0600 Subject: [PATCH] Improve accessibility --- i18n/en.yaml | 64 +++++++++++++++++++ layouts/_default/_markup/render-heading.html | 2 +- layouts/_default/baseof.html | 4 +- layouts/_default/list.html | 6 +- layouts/_default/single.html | 2 +- layouts/partials/breadcrumb.html | 2 +- layouts/partials/post-meta-item/authors.html | 2 +- .../partials/post-meta-item/readingtime.html | 2 +- layouts/partials/post-meta-item/series.html | 2 +- layouts/partials/post-meta-item/tags.html | 2 +- .../partials/post-meta-item/translations.html | 2 +- .../partials/post-meta-item/viewsource.html | 2 +- layouts/partials/post-metadata/author.html | 6 +- layouts/partials/post-metadata/full.html | 6 +- layouts/partials/post-metadata/series.html | 2 +- layouts/partials/post-metadata/short.html | 4 +- layouts/partials/rss-link.html | 2 +- layouts/partials/top.html | 8 +-- 18 files changed, 90 insertions(+), 30 deletions(-) diff --git a/i18n/en.yaml b/i18n/en.yaml index b41fff9..776e4c6 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -39,3 +39,67 @@ older_post: newer_post: other: "Newer" + +# ARIA labels +aria_header_link: + other: "header link" + +aria_back_to_top_button: + other: "back to top button" + +aria_rss_link: + other: "RSS feed link" + +aria_post_meta_view_source: + other: "link to page source" + +aria_post_meta_translations: + other: "translations" + +aria_post_meta_tags: + other: "tags" + +aria_post_meta_reading_time: + other: "reading time" + +aria_post_meta_authors: + other: "authors" + +aria_post_meta_series: + other: "series" + +aria_breadcrumbnav: + other: "breadcrumb navigation bar" + +aria_post_metadata: + other: "post metadata" + +aria_author_metadata: + other: "author metadata" + +aria_post_meta_date: + other: "date" + +aria_post_meta_modified_date: + other: "last modified date" + +aria_author_post_count: + other: "post count" + +aria_author_word_count: + other: "word count" + +aria_series_metadata: + other: "series metadata" + +aria_navbar: + other: "navigation bar" + +aria_langpicker: + other: "language picker" + +aria_langpicker_list: + other: "language list" + +aria_table_of_contents: + other: "table of contents" diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html index 3644bda..7a5cde4 100644 --- a/layouts/_default/_markup/render-heading.html +++ b/layouts/_default/_markup/render-heading.html @@ -1,7 +1,7 @@ {{ .Text | safeHTML }} - + {{ partial "icon.html" "link" }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 74447e6..1467a4c 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -4,7 +4,7 @@ {{ partial "head.html" . }} - +
{{ partial "top.html" . }} @@ -29,7 +29,7 @@ {{ end }} - + {{ partial "icon.html" "chevron-up" }}