Merge pull request #161 from jcabak/master
Accessibility and SEO improvements
This commit is contained in:
commit
f90395f13b
5 changed files with 11 additions and 5 deletions
|
@ -40,18 +40,22 @@ contact_form_action = "#" # contact form works with : https://formspree.io
|
||||||
############################## social links ##############################
|
############################## social links ##############################
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
icon = "ti-facebook" # themify icon pack : https://themify.me/themify-icons
|
icon = "ti-facebook" # themify icon pack : https://themify.me/themify-icons
|
||||||
|
name = "Facebook"
|
||||||
link = "#"
|
link = "#"
|
||||||
|
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
icon = "ti-twitter-alt" # themify icon pack : https://themify.me/themify-icons
|
icon = "ti-twitter-alt" # themify icon pack : https://themify.me/themify-icons
|
||||||
|
name = "Twitter"
|
||||||
link = "#"
|
link = "#"
|
||||||
|
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
icon = "ti-github" # themify icon pack : https://themify.me/themify-icons
|
icon = "ti-github" # themify icon pack : https://themify.me/themify-icons
|
||||||
|
name = "Github"
|
||||||
link = "#"
|
link = "#"
|
||||||
|
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
icon = "ti-linkedin" # themify icon pack : https://themify.me/themify-icons
|
icon = "ti-linkedin" # themify icon pack : https://themify.me/themify-icons
|
||||||
|
name = "Linkedin"
|
||||||
link = "#"
|
link = "#"
|
||||||
|
|
||||||
################################ English Language ######################
|
################################ English Language ######################
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-3">
|
<div class="col-lg-3">
|
||||||
<div class="sidebar">
|
<div class="sidebar">
|
||||||
|
<a class="back-btn" href="{{ .Site.BaseURL | relLangURL }}" aria-label="back"></a>
|
||||||
<ul class="list-styled">
|
<ul class="list-styled">
|
||||||
{{ $currentNode := . }}
|
{{ $currentNode := . }}
|
||||||
<a class="back-btn" href="{{ .Site.BaseURL | relLangURL }}"></a>
|
|
||||||
{{range .Site.Home.Sections.ByWeight}}
|
{{range .Site.Home.Sections.ByWeight}}
|
||||||
{{ if eq .FirstSection $currentNode.FirstSection }}
|
{{ if eq .FirstSection $currentNode.FirstSection }}
|
||||||
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode}}
|
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode}}
|
||||||
|
@ -61,10 +61,10 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{with ($.Scratch.Get "prevPage")}}
|
{{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}}
|
{{end}}
|
||||||
{{with ($.Scratch.Get "nextPage")}}
|
{{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}}
|
{{end}}
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<div class="col-md-4 text-md-right text-center">
|
<div class="col-md-4 text-md-right text-center">
|
||||||
<ul class="list-inline">
|
<ul class="list-inline">
|
||||||
{{ range .Site.Params.social }}
|
{{ 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 }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>{{ .Title }}</title>
|
<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 }}
|
{{ hugo.Generator }}
|
||||||
|
<meta name="description" content="{{ .Title }} - {{ .Site.Title }} ">
|
||||||
|
|
||||||
{{ "<!-- ** CSS Plugins Needed for the Project ** -->" | safeHTML }}
|
{{ "<!-- ** CSS Plugins Needed for the Project ** -->" | safeHTML }}
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
url('fonts/themify.svg?-fvbane#themify') format('svg');
|
url('fonts/themify.svg?-fvbane#themify') format('svg');
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
[class^="ti-"],
|
[class^="ti-"],
|
||||||
|
|
Loading…
Reference in a new issue