mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-27 10:52:09 +00:00
19 lines
519 B
HTML
19 lines
519 B
HTML
{{- with .Parent -}}
|
|
{{- if eq .Name "quotation" -}}
|
|
<figcaption>
|
|
—
|
|
{{- else if eq .Name "codefigure" -}}
|
|
Taken from
|
|
{{- end -}}
|
|
{{- end -}}
|
|
<span class="h-cite" itemprop="citation" role="doc-credit">
|
|
{{ with .Get "partOfType" -}}
|
|
<span itemprop="isPartOf" itemscope="" itemtype="https://schema.org/{{ . }}">
|
|
{{- end -}}
|
|
{{ .Inner | markdownify | safeHTML }}
|
|
{{- with .Get "partOfType" }}</span>{{ end }}
|
|
</span>
|
|
{{- with .Parent -}}{{ if eq .Name "quotation" }}
|
|
</figcaption>
|
|
{{- end -}}
|
|
{{- end }}
|