mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 22:12:10 +00:00
7bd796a44c
- Change a quote of a code snippet to a code snippet with a citation - Mention tkhtml - Mention pandoc and printfriendly as exmples of moving figure elements like floating blocks. - Make TPGi a publisher, not an author. - Use brackets to clarify a reference in a quotation. - Add personal example of why it's important to test both low- and high-end displays.
17 lines
450 B
HTML
17 lines
450 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">
|
|
<span itemprop="isPartOf" itemscope itemtype="https://schema.org/{{ .Get "partOfType" }}">
|
|
{{ .Inner | markdownify | safeHTML }}
|
|
</span>
|
|
</span>
|
|
{{- with .Parent -}}{{ if eq .Name "quotation" }}
|
|
</figcaption>
|
|
{{- end -}}
|
|
{{- end }}
|