aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2019-04-23 23:02:06 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2019-04-23 23:02:06 +0200
commit5b963180ab77741190d260cb33ddbb3dca5a27cd (patch)
tree3de37913583bbf5bc2dc767f77372a6d93687862
parentbcbb5a5006a9395e6e2d25ca77812273cd56c84e (diff)
Improve accessibility
-rw-r--r--archetypes/posts.md2
-rw-r--r--layouts/404.html2
-rw-r--r--layouts/docs/baseof.html2
-rw-r--r--layouts/home.html2
-rw-r--r--layouts/partials/docs/git-footer.html4
-rw-r--r--layouts/partials/docs/html-head.html1
-rw-r--r--layouts/partials/docs/mobile-header.html2
-rw-r--r--layouts/posts/baseof.html2
8 files changed, 8 insertions, 9 deletions
diff --git a/archetypes/posts.md b/archetypes/posts.md
index 2a20769..fdccff8 100644
--- a/archetypes/posts.md
+++ b/archetypes/posts.md
@@ -1,4 +1,4 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
---- \ No newline at end of file
+---
diff --git a/layouts/404.html b/layouts/404.html
index 468ba6f..b6b1d0e 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -1,6 +1,6 @@
<!DOCTYPE html>
{{- partial "docs/shared" -}}
-<html>
+<html lang="{{ .Site.Language.Lang }}">
<head>
{{ partial "docs/html-head" . }}
diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html
index dc654b7..29b067f 100644
--- a/layouts/docs/baseof.html
+++ b/layouts/docs/baseof.html
@@ -1,6 +1,6 @@
<!DOCTYPE html>
{{- partial "docs/shared" -}}
-<html>
+<html lang="{{ .Site.Language.Lang }}">
<head>
{{ partial "docs/html-head" . }}
diff --git a/layouts/home.html b/layouts/home.html
index 07057b4..69054ca 100644
--- a/layouts/home.html
+++ b/layouts/home.html
@@ -1,6 +1,6 @@
<!DOCTYPE html>
{{- partial "docs/shared" -}}
-<html>
+<html lang="{{ .Site.Language.Lang }}">
<head>
{{ partial "docs/html-head" . }}
diff --git a/layouts/partials/docs/git-footer.html b/layouts/partials/docs/git-footer.html
index 001c9ff..1f54daa 100644
--- a/layouts/partials/docs/git-footer.html
+++ b/layouts/partials/docs/git-footer.html
@@ -4,14 +4,14 @@
<div>
{{ $date := .AuthorDate.Local.Format (default "January 2, 2006" $.Site.Params.BookDateFormat) }}
<a href="{{ $.Site.Params.BookRepo }}/commit/{{ .Hash }}" title='Last modified {{ $date }} by {{ .AuthorName }}' target="_blank" rel="noopener">
- <img src="{{ "svg/code-merge.svg" | relURL }}" /> {{ $date }}
+ <img src="{{ "svg/code-merge.svg" | relURL }}" alt="Changed" /> {{ $date }}
</a>
</div>
{{ end }}
{{ with .Site.Params.BookEditPath }}
<div>
{{ if $.File }}<a href="{{ $.Site.Params.BookRepo }}/{{ . }}/{{ $.File.Path }}" target="_blank" rel="noopener">
- <img src="{{ "svg/code-fork.svg" | relURL }}" /> Edit this page
+ <img src="{{ "svg/code-fork.svg" | relURL }}" alt="Edit" /> Edit this page
</a>{{ end }}
</div>
{{ end }}
diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html
index ab05a59..2aca710 100644
--- a/layouts/partials/docs/html-head.html
+++ b/layouts/partials/docs/html-head.html
@@ -6,7 +6,6 @@
<link href="https://fonts.googleapis.com/css?family=Oxygen|Oxygen+Mono:300,400,700" rel="stylesheet">
<!-- Theme stylesheet, you can customize scss by creatig `assets/custom.scss` in your website -->
-<link rel="stylesheet" href="{{ "normalize.min.css" | relURL }}">
{{ $styles := resources.Get "book.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}">
diff --git a/layouts/partials/docs/mobile-header.html b/layouts/partials/docs/mobile-header.html
index 7febbad..b8fa2a9 100644
--- a/layouts/partials/docs/mobile-header.html
+++ b/layouts/partials/docs/mobile-header.html
@@ -1,6 +1,6 @@
<header class="align-center justify-between book-header">
<label for="menu-control">
- <img src="{{ "svg/menu.svg" | relURL }}" />
+ <img src="{{ "svg/menu.svg" | relURL }}" alt="Menu" />
</label>
<strong>{{- template "title" . }}</strong>
</header>
diff --git a/layouts/posts/baseof.html b/layouts/posts/baseof.html
index 2f4e8f0..6b32b2e 100644
--- a/layouts/posts/baseof.html
+++ b/layouts/posts/baseof.html
@@ -1,6 +1,6 @@
<!DOCTYPE html>
{{- partial "docs/shared" -}}
-<html>
+<html lang="{{ .Site.Language.Lang }}">
<head>
{{ partial "docs/html-head" . }}