From e05d86f6fe2473ed7b80405f7a839178405a0b6a Mon Sep 17 00:00:00 2001 From: Dmitry Kolosov Date: Sun, 26 Apr 2020 15:18:55 +0300 Subject: [PATCH] Add skip to main content link (accessibility). Close #24 --- i18n/en.yaml | 5 ++++- i18n/fr.yaml | 3 +++ i18n/ru.yaml | 5 ++++- layouts/_default/baseof.html | 5 +++-- static/css/style.css | 27 +++++++++++++++++++++++++++ 5 files changed, 41 insertions(+), 4 deletions(-) diff --git a/i18n/en.yaml b/i18n/en.yaml index 60c2224..3d396fe 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -32,4 +32,7 @@ toAllTags: other: "to all tags" toAllCategories: - other: "to all categories" \ No newline at end of file + other: "to all categories" + +skipToContent: + other: "skip to main content" \ No newline at end of file diff --git a/i18n/fr.yaml b/i18n/fr.yaml index 3c8b414..9b022c4 100644 --- a/i18n/fr.yaml +++ b/i18n/fr.yaml @@ -33,3 +33,6 @@ toAllTags: toAllCategories: other: "vers toutes les catégories" + +skipToContent: + other: "passer au contenu principal" \ No newline at end of file diff --git a/i18n/ru.yaml b/i18n/ru.yaml index 53fa1b2..baafa10 100644 --- a/i18n/ru.yaml +++ b/i18n/ru.yaml @@ -32,4 +32,7 @@ toAllTags: other: "ко списку всех тегов" toAllCategories: - other: "ко списку всех категорий" \ No newline at end of file + other: "ко списку всех категорий" + +skipToContent: + other: "перейти к основному контенту" \ No newline at end of file diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 15804fa..fb4c3dd 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,18 +1,19 @@ - + {{ block "head" . }} {{ partial "head.html" . }} {{ end }} + {{ i18n "skipToContent" | humanize }}
{{ block "header" . }} {{ partial "header.html" . }} {{ end }}
-
+
{{ block "main" . }}{{ end }}