Omphaloskepsis-2/layouts/shortcodes/blockquote.html

34 lines
1.3 KiB
HTML
Raw Normal View History

2023-07-01 03:16:59 +00:00
{{- if ( not .Params ) -}}
{{- errorf "No params provided for blockquote" -}}
{{- end -}}
<figure
class="figure--blockquote blockquote{{- if .Params.style }} blockquote--{{- .Params.style -}}{{- end -}}"
itemscope
itemtype="Quotation"
2023-08-22 10:14:33 +00:00
role="group">
2023-07-01 03:16:59 +00:00
<blockquote
class="blockquote__body"
2023-08-22 10:14:33 +00:00
{{- if .Params.cite }} cite="{{ .Params.cite }}"{{- end -}}>
2023-08-07 22:23:46 +00:00
{{- .Inner | .Page.RenderString -}}
2023-07-01 03:16:59 +00:00
</blockquote>
<figcaption class="blockquote__caption">
{{- if .Params.ibid -}}
<abbr lang="la" title="ibīdem [in the same place]">Ibid.</abbr>
{{- else -}}
2023-08-07 22:23:46 +00:00
<span itemprop="spokenByCharacter">{{- .Params.source | safeHTML -}}</span>
2024-04-02 19:36:21 +00:00
{{- if .Params.title -}}, <span itemprop="isBasedOn">{{- partial "cite.html.tmpl" . -}}
{{- if ( isset .Params "titleSeries" ) }} (
{{- .Scratch.Set "cite" .Params.citeSeries -}}
{{- .Scratch.Set "title" .Params.titleSeries -}}
{{- .Scratch.Set "titleLang" .Params.titleSeriesLang -}}
{{- .Scratch.Set "titleTr" .Params.titleSeriesTr -}}
{{- .Scratch.Set "schemaType" .Params.schemaTypeSeries -}}
{{- partial "cite.html.tmpl" . -}}
2023-07-01 03:16:59 +00:00
{{- with .Params.numberSeries }}, {{ . | safeHTML -}}{{- end -}}
){{- end -}}</span>
{{- end -}}
{{- end -}}
</figcaption>
</figure>