From 916cc03dd1e42a996967b5c4660db0f8e0fe69aa Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 22 Mar 2021 16:33:33 +0100 Subject: [PATCH] Make HTML more semantic and add ARIA labels. --- layouts/_default/list.html | 6 +++--- layouts/_default/single.html | 2 +- layouts/_default/terms.html | 6 +++--- layouts/partials/footer.html | 12 ++++++------ layouts/partials/header.html | 4 ++-- layouts/partials/pagination.html | 6 +++--- layouts/partials/post_meta.html | 4 ++-- layouts/partials/toc.html | 8 ++++---- 8 files changed, 24 insertions(+), 24 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 6134898..8e30353 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,6 +1,6 @@ {{- define "main" }} -
-

{{ .Title }}:

+
+

{{ .Title }}:

    {{- range .Paginator.Pages }}
  • @@ -12,6 +12,6 @@
  • {{- end }}
-
+ {{ partial "pagination.html" . }} {{- end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4c8c0f2..c6f6fde 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,5 +4,5 @@ {{ partial "toc.html" . }} -
{{ .Content }}
+
{{ .Content }}
{{- end }} diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 8f073ef..9aeb9cd 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -1,6 +1,6 @@ {{- define "main" }} -
-

{{ .Title }}:

+
+

{{ .Title }}:

    {{- range .Data.Terms.ByCount }} {{ $count := .Count }} @@ -12,5 +12,5 @@ {{- end }} {{- end }}
-
+ {{- end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 395bc83..ff118a9 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,6 +1,6 @@
- + diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 33515f6..ecd1201 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,9 +1,9 @@ -
+
{{ .Site.Title }} {{- with .Site.Params.subtitle }} {{ . }} {{- end }} -
+ diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html index 0cdf3f7..cc9e05f 100644 --- a/layouts/partials/post_meta.html +++ b/layouts/partials/post_meta.html @@ -1,7 +1,7 @@ {{- $showdate := default (default true $.Site.Params.showMetaDates) .Params.showmetadates }} {{- $showlink := default (default true $.Site.Params.showMetaLinks) .Params.showmetalinks }} {{- if or $showdate $showlink }} -
+
+ {{- end }} diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html index 6d71371..a93b209 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -1,8 +1,8 @@ {{ if and (gt .WordCount 400 ) (.Params.toc) }} -