1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-18 23:13:10 +00:00
seirdy.one/layouts/shortcodes/quotecaption.html

18 lines
453 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">
<span itemprop="isPartOf" itemscope="" itemtype="https://schema.org/{{ .Get "partOfType" }}">
{{ .Inner | markdownify | safeHTML }}
</span>
</span>
{{- with .Parent -}}{{ if eq .Name "quotation" }}
</figcaption>
{{- end -}}
{{- end }}