From fb13167d3c7a0926ebfe24cfd8a8e73ea765584d Mon Sep 17 00:00:00 2001 From: coliff Date: Wed, 17 Apr 2024 17:04:53 +0900 Subject: [PATCH] Accessibility improvements - Adds semantic 'article' tag to blog posts Removed from PR: - Adds main landmark (this is particularly helpful for screen readers - tested with NVDA on Windows) --- src/layouts/_default/home.html | 4 ++-- src/layouts/posts/single.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/layouts/_default/home.html b/src/layouts/_default/home.html index 2fd72160f..6db3ce1da 100644 --- a/src/layouts/_default/home.html +++ b/src/layouts/_default/home.html @@ -6,7 +6,7 @@ {{- /* Don't lazyload the first asset in each page (video, banner etc) */ -}} {{- $lazyload := cond (eq $i 0) false true -}} -
+

{{ .Title }}

@@ -22,7 +22,7 @@

{{- end }} {{ .Content }} -

+ {{- end }} diff --git a/src/layouts/posts/single.html b/src/layouts/posts/single.html index a81cd5fc0..554e52a92 100644 --- a/src/layouts/posts/single.html +++ b/src/layouts/posts/single.html @@ -1,6 +1,6 @@ {{ define "main" }}
-
+

{{ .Page.Title }}

{{ partial "author-info" (dict "context" .) -}} @@ -13,7 +13,7 @@

{{ .Page.Title }}

{{- end -}} {{ .Content }} -
+