mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 14:12:09 +00:00
22dfabd262
<div> can't be given an accessible name, and a <section> should have a heading. Sigh.
15 lines
408 B
HTML
15 lines
408 B
HTML
{{ with .Parent -}}
|
|
{{- $type := "image" -}}
|
|
{{- with .Get "type" -}}
|
|
{{- $type = . -}}
|
|
{{- end -}}
|
|
<details>
|
|
<summary>Toggle {{ $type }} <span itemprop="accessibilityFeature">transcript</span></summary>
|
|
<section id="transcript-{{ .Get "id" }}">
|
|
<h5>{{ $type | humanize }} transcript</h5>
|
|
{{- end }}
|
|
<div itemprop="embeddedTextCaption">
|
|
{{ .Inner | markdownify | safeHTML }}
|
|
</div>
|
|
</section>
|
|
</details>
|