Improve accessibility

This commit is contained in:
Alex Shpak 2019-04-23 23:02:06 +02:00
parent bcbb5a5006
commit 5b963180ab
8 changed files with 8 additions and 9 deletions

View file

@ -1,6 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
{{- partial "docs/shared" -}} {{- partial "docs/shared" -}}
<html> <html lang="{{ .Site.Language.Lang }}">
<head> <head>
{{ partial "docs/html-head" . }} {{ partial "docs/html-head" . }}

View file

@ -1,6 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
{{- partial "docs/shared" -}} {{- partial "docs/shared" -}}
<html> <html lang="{{ .Site.Language.Lang }}">
<head> <head>
{{ partial "docs/html-head" . }} {{ partial "docs/html-head" . }}

View file

@ -1,6 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
{{- partial "docs/shared" -}} {{- partial "docs/shared" -}}
<html> <html lang="{{ .Site.Language.Lang }}">
<head> <head>
{{ partial "docs/html-head" . }} {{ partial "docs/html-head" . }}

View file

@ -4,14 +4,14 @@
<div> <div>
{{ $date := .AuthorDate.Local.Format (default "January 2, 2006" $.Site.Params.BookDateFormat) }} {{ $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"> <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> </a>
</div> </div>
{{ end }} {{ end }}
{{ with .Site.Params.BookEditPath }} {{ with .Site.Params.BookEditPath }}
<div> <div>
{{ if $.File }}<a href="{{ $.Site.Params.BookRepo }}/{{ . }}/{{ $.File.Path }}" target="_blank" rel="noopener"> {{ 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 }} </a>{{ end }}
</div> </div>
{{ end }} {{ end }}

View file

@ -6,7 +6,6 @@
<link href="https://fonts.googleapis.com/css?family=Oxygen|Oxygen+Mono:300,400,700" rel="stylesheet"> <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 --> <!-- 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 }} {{ $styles := resources.Get "book.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}"> <link rel="stylesheet" href="{{ $styles.RelPermalink }}">

View file

@ -1,6 +1,6 @@
<header class="align-center justify-between book-header"> <header class="align-center justify-between book-header">
<label for="menu-control"> <label for="menu-control">
<img src="{{ "svg/menu.svg" | relURL }}" /> <img src="{{ "svg/menu.svg" | relURL }}" alt="Menu" />
</label> </label>
<strong>{{- template "title" . }}</strong> <strong>{{- template "title" . }}</strong>
</header> </header>

View file

@ -1,6 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
{{- partial "docs/shared" -}} {{- partial "docs/shared" -}}
<html> <html lang="{{ .Site.Language.Lang }}">
<head> <head>
{{ partial "docs/html-head" . }} {{ partial "docs/html-head" . }}