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

github.com/ojroques/hugo-researcher.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Roques <ojroques@users.noreply.github.com>2021-04-13 18:45:33 +0300
committerGitHub <noreply@github.com>2021-04-13 18:45:33 +0300
commit1d08af5a7f1f36ca5253a2b5982403d6be2ca749 (patch)
treeb083188a2b26a174f680c49cee0b700a7a0f59f5
parent3b00e619381916e42fe696820ba2030db3f32a64 (diff)
parentd6e09b96126b463b19977c3838cead5d7092b32d (diff)
Merge pull request #17 from jcabak/master
Accessibility and SEO improvements
-rw-r--r--exampleSite/content/about.md2
-rw-r--r--layouts/_default/baseof.html2
-rw-r--r--layouts/partials/footer.html2
-rw-r--r--layouts/partials/header.html4
4 files changed, 5 insertions, 5 deletions
diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md
index 04cf0d4..b9fda09 100644
--- a/exampleSite/content/about.md
+++ b/exampleSite/content/about.md
@@ -4,7 +4,7 @@ title = "About"
## About Me
-{{< figure class="avatar" src="/avatar.jpg" >}}
+{{< figure class="avatar" src="/avatar.jpg" alt="avatar">}}
This is a Hugo based resume template. You can find the full source code on
[GitHub](https://github.com/ojroques/hugo-researcher).
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index cb56faf..237c540 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html>
+<html lang="{{ .Site.Params.lang }}">
{{- partial "head.html" . -}}
{{ if or (.Params.math) (.Site.Params.math) }}
{{- partial "math.html" . -}}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 10486f3..192130b 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -2,7 +2,7 @@
{{ with .Site.Params.footer }}
<hr>
<div class="container text-center">
- <a href="{{ .url | absURL }}"><small>{{ .text }}</small></a>
+ <a href="{{ .url | absURL }}" title="{{ .text }}"><small>{{ .text }}</small></a>
</div>
{{ end }}
</div>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 37f5259..b017ee2 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,6 +1,6 @@
<div class="container mt-5">
<nav class="navbar navbar-expand-sm flex-column flex-sm-row text-nowrap p-0">
- <a class="navbar-brand mx-0 mr-sm-auto" href="{{ .Site.BaseURL }}">
+ <a class="navbar-brand mx-0 mr-sm-auto" href="{{ .Site.BaseURL }}" title="{{ .Site.Title }}">
{{ with .Site.Params.logo }}
<img src="{{ . | absURL }}" alt="logo">
{{ end }}
@@ -10,7 +10,7 @@
{{ with .Site.Menus.main }}
{{ $navbar_len := len . }}
{{ range $i, $nav_item := . }}
- <a class="nav-item nav-link" href="{{ $nav_item.URL }}">
+ <a class="nav-item nav-link" href="{{ $nav_item.URL }}" title="{{ $nav_item.Name }}">
{{ $nav_item.Pre }}{{ $nav_item.Name }}{{ $nav_item.Post }}
</a>
{{ if ne (add $i 1) $navbar_len }}