Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gethugothemes/dot-hugo-documentation-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSomrat Sorkar <37659754+somratpro@users.noreply.github.com>2021-04-24 06:09:57 +0300
committerGitHub <noreply@github.com>2021-04-24 06:09:57 +0300
commitf90395f13bdf64555625835a98bd84db3e959578 (patch)
treeddee480ebf4258d5ba8d663ce12064503e902ed5
parentaf14a0d07a436f37d0c7c4322c35a27e8bca6e97 (diff)
parentdf803ed9debd0040c7ef3118cce6240f726ac42b (diff)
Merge pull request #161 from jcabak/master
Accessibility and SEO improvements
-rw-r--r--exampleSite/config.toml4
-rw-r--r--layouts/partials/default.html6
-rw-r--r--layouts/partials/footer.html2
-rw-r--r--layouts/partials/head.html3
-rw-r--r--static/plugins/themify-icons/themify-icons.css1
5 files changed, 11 insertions, 5 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 36ebabb..b36d169 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -40,18 +40,22 @@ contact_form_action = "#" # contact form works with : https://formspree.io
############################## social links ##############################
[[params.social]]
icon = "ti-facebook" # themify icon pack : https://themify.me/themify-icons
+name = "Facebook"
link = "#"
[[params.social]]
icon = "ti-twitter-alt" # themify icon pack : https://themify.me/themify-icons
+name = "Twitter"
link = "#"
[[params.social]]
icon = "ti-github" # themify icon pack : https://themify.me/themify-icons
+name = "Github"
link = "#"
[[params.social]]
icon = "ti-linkedin" # themify icon pack : https://themify.me/themify-icons
+name = "Linkedin"
link = "#"
################################ English Language ######################
diff --git a/layouts/partials/default.html b/layouts/partials/default.html
index 001555f..b60b3cb 100644
--- a/layouts/partials/default.html
+++ b/layouts/partials/default.html
@@ -4,9 +4,9 @@
<div class="row">
<div class="col-lg-3">
<div class="sidebar">
+ <a class="back-btn" href="{{ .Site.BaseURL | relLangURL }}" aria-label="back"></a>
<ul class="list-styled">
{{ $currentNode := . }}
- <a class="back-btn" href="{{ .Site.BaseURL | relLangURL }}"></a>
{{range .Site.Home.Sections.ByWeight}}
{{ if eq .FirstSection $currentNode.FirstSection }}
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode}}
@@ -61,10 +61,10 @@
{{ end }}
{{with ($.Scratch.Get "prevPage")}}
- <a class="nav nav-prev" href="{{.Permalink }}"><i class="ti-arrow-left mr-2"></i> <span class="d-none d-md-block">{{.Title}}</span></a>
+ <a class="nav nav-prev" href="{{.Permalink }}" aria-label="Previous page" ><i class="ti-arrow-left mr-2"></i> <span class="d-none d-md-block">{{.Title}}</span></a>
{{end}}
{{with ($.Scratch.Get "nextPage")}}
- <a class="nav nav-next" href="{{.Permalink }}"> <span class="d-none d-md-block">{{.Title}}</span><i class="ti-arrow-right ml-2"></i></a>
+ <a class="nav nav-next" href="{{.Permalink }}" aria-label="Previous page" > <span class="d-none d-md-block">{{.Title}}</span><i class="ti-arrow-right ml-2"></i></a>
{{end}}
</nav>
</div>
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 03c7968..5f3d3ed 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -8,7 +8,7 @@
<div class="col-md-4 text-md-right text-center">
<ul class="list-inline">
{{ range .Site.Params.social }}
- <li class="list-inline-item"><a class="text-color d-inline-block p-2" href="{{ .link | safeURL }}"><i class="{{ .icon }}"></i></a></li>
+ <li class="list-inline-item"><a class="text-color d-inline-block p-2" href="{{ .link | safeURL }}" aria-label="{{ .name }}"><i class="{{ .icon }}"></i></a></li>
{{ end }}
</ul>
</div>
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 64ae644..c7b8ada 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,8 +1,9 @@
<head>
<meta charset="utf-8">
<title>{{ .Title }}</title>
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+ <meta name="viewport" content="width=device-width, initial-scale=1"/>
{{ hugo.Generator }}
+ <meta name="description" content="{{ .Title }} - {{ .Site.Title }} ">
{{ "<!-- ** CSS Plugins Needed for the Project ** -->" | safeHTML }}
diff --git a/static/plugins/themify-icons/themify-icons.css b/static/plugins/themify-icons/themify-icons.css
index db133b8..9f2ea36 100644
--- a/static/plugins/themify-icons/themify-icons.css
+++ b/static/plugins/themify-icons/themify-icons.css
@@ -7,6 +7,7 @@
url('fonts/themify.svg?-fvbane#themify') format('svg');
font-weight: normal;
font-style: normal;
+ font-display: swap;
}
[class^="ti-"],