From 22dfabd262aa094a0052dd2d7ccc3cfdf77a114c Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Wed, 29 Jun 2022 21:37:38 -0700 Subject: [PATCH] Give transcripts back their headings
can't be given an accessible name, and a
should have a heading. Sigh. --- .../transcribed-image-transcript.html | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/layouts/shortcodes/transcribed-image-transcript.html b/layouts/shortcodes/transcribed-image-transcript.html index 9512ae2..d1b23e1 100644 --- a/layouts/shortcodes/transcribed-image-transcript.html +++ b/layouts/shortcodes/transcribed-image-transcript.html @@ -1,14 +1,15 @@ +{{ with .Parent -}} +{{- $type := "image" -}} +{{- with .Get "type" -}} + {{- $type = . -}} +{{- end -}}
- {{ with .Parent -}} - {{- $type := "image" -}} - {{- with .Get "type" -}} - {{- $type = . -}} - {{- end -}} - {{ $type | humanize }} transcript -
- {{- end -}} -
- {{ .Inner | markdownify | safeHTML }} -
+Toggle {{ $type }} transcript +
+
{{ $type | humanize }} transcript
+{{- end }} +
+ {{ .Inner | markdownify | safeHTML }}
+