1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-14 01:32:11 +00:00
seirdy.one/layouts/shortcodes/quotecaption.html

20 lines
519 B
HTML
Raw Normal View History

{{- with .Parent -}}
{{- if eq .Name "quotation" -}}
<figcaption>
&mdash;
{{- else if eq .Name "codefigure" -}}
Taken from
{{- end -}}
{{- end -}}
<span class="h-cite" itemprop="citation" role="doc-credit">
2022-12-09 21:48:49 +00:00
{{ with .Get "partOfType" -}}
<span itemprop="isPartOf" itemscope="" itemtype="https://schema.org/{{ . }}">
{{- end -}}
{{ .Inner | markdownify | safeHTML }}
2022-12-09 21:48:49 +00:00
{{- with .Get "partOfType" }}</span>{{ end }}
</span>
{{- with .Parent -}}{{ if eq .Name "quotation" }}
</figcaption>
{{- end -}}
{{- end }}