1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-26 10:22:10 +00:00
seirdy.one/layouts/shortcodes/transcribed-image.html

25 lines
662 B
HTML
Raw Normal View History

2022-05-13 01:56:16 +00:00
{{- $type := "image" -}}
{{- $itemtype := "CreativeWork" -}}
{{- $itemtype2 := "ImageObject" -}}
{{- $itemprop := "mentions" -}}
{{- with .Get "type" -}}
{{- $type = . -}}
{{- end -}}
{{- with .Get "itemtype" -}}
{{- $itemtype = . -}}
{{- end -}}
{{- with .Get "itemtype2" -}}
{{- $itemtype2 = . -}}
{{- end -}}
{{- with .Get "itemprop" -}}
{{- $itemprop = . -}}
{{- end -}}
<hr />
<section
aria-label="{{ $type }}, caption, and transcript"
itemprop="{{ $itemprop }}" itemscope="" itemtype="https://schema.org/{{ $itemtype }} https://schema.org/{{ $itemtype2 }}"
id="{{ .Get "id" }}" tabindex="-1">
{{ .Inner | markdownify | safeHTML }}
</section>
<hr />