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 }}
+