1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-27 14:12:09 +00:00
seirdy.one/layouts/shortcodes/image-figure.html

9 lines
317 B
HTML
Raw Normal View History

2022-05-06 17:30:11 +00:00
<figure itemscope itemtype="https://schema.org/ImageObject"
{{- with .Get "id" }} id="{{ . }}" tabindex="-1"{{ end -}}
2022-05-06 17:30:11 +00:00
{{- if .Get "representative" }} itemprop="image">
2022-05-10 23:05:22 +00:00
<meta itemprop="representativeOfPage" content="true">
2022-05-06 17:30:11 +00:00
{{- else }} itemprop="hasPart">
{{- end }}
{{ .Inner | markdownify | safeHTML }}
</figure>