mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-26 18:32:10 +00:00
aad8b11a70
- New shortcode for quotation. Not using this yet. - Make picture shortcode round image dimensions to integer values. - Make quotecaption support code snippets borrowed from other places. Not using this yet.
14 lines
377 B
HTML
14 lines
377 B
HTML
<figcaption>
|
|
{{- with .Parent -}}
|
|
{{- if eq .Name "quotation" -}}
|
|
—
|
|
{{- 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>
|
|
</figcaption>
|