2022-07-01 03:12:06 +00:00
|
|
|
{{- $captionType := "embeddedTextCaption" -}}
|
2022-06-30 04:37:38 +00:00
|
|
|
{{- $type := "image" -}}
|
|
|
|
{{- with .Get "type" -}}
|
|
|
|
{{- $type = . -}}
|
|
|
|
{{- end -}}
|
2022-07-01 03:12:06 +00:00
|
|
|
{{ with .Parent -}}
|
|
|
|
{{- with .Get "type" -}}
|
|
|
|
{{- $type = . -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- if eq .Name "transcribed-audio" -}}
|
|
|
|
{{- $captionType = "transcript" -}}
|
|
|
|
{{- end -}}
|
2022-04-22 18:48:22 +00:00
|
|
|
<details>
|
2022-06-30 04:37:38 +00:00
|
|
|
<summary>Toggle {{ $type }} <span itemprop="accessibilityFeature">transcript</span></summary>
|
|
|
|
<section id="transcript-{{ .Get "id" }}">
|
2022-07-01 03:12:06 +00:00
|
|
|
{{ if eq (.Get "hlevel") "3" -}}
|
|
|
|
<h4>{{ $type | humanize }} transcript</h4>
|
|
|
|
{{- else -}}
|
2022-06-30 04:37:38 +00:00
|
|
|
<h5>{{ $type | humanize }} transcript</h5>
|
2022-07-01 03:12:06 +00:00
|
|
|
{{- end -}}
|
2022-06-30 04:37:38 +00:00
|
|
|
{{- end }}
|
2022-07-01 03:12:06 +00:00
|
|
|
<div itemprop="{{ $captionType }}">
|
2022-06-30 04:37:38 +00:00
|
|
|
{{ .Inner | markdownify | safeHTML }}
|
2022-04-21 00:55:13 +00:00
|
|
|
</div>
|
2022-06-30 04:37:38 +00:00
|
|
|
</section>
|
2022-04-21 00:55:13 +00:00
|
|
|
</details>
|