From 372589a57a23d8d302c78dfe994c664bc0da2c6e Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Fri, 6 May 2022 10:31:52 -0700 Subject: [PATCH] Improve image transcript navigation - Identify the transcript with a subheading, ending in a period so that the aria-description separates the identifier from the concept. - Put the transcript in a
- Snuck in a trivial syntax fix for the generator element. --- layouts/partials/head.html | 2 +- layouts/shortcodes/transcribed-image-transcript.html | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 4a7b7e4..9055403 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -63,5 +63,5 @@ -{{ hugo.Generator }} +{{ hugo.Generator | replaceRE " />" ">" | safeHTML}} diff --git a/layouts/shortcodes/transcribed-image-transcript.html b/layouts/shortcodes/transcribed-image-transcript.html index c1e1e51..e2ef438 100644 --- a/layouts/shortcodes/transcribed-image-transcript.html +++ b/layouts/shortcodes/transcribed-image-transcript.html @@ -1,9 +1,11 @@
Toggle transcript -
+
+
Image transcript.
+{{- end -}} +
{{ .Inner | markdownify | safeHTML }}
+