Omphaloskepsis-2/layouts/shortcodes/blockquote.html

36 lines
1.5 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>
2023-07-01 03:16:59 +00:00
{{- if .Params.title -}}, <span itemprop="isBasedOn">{{- partial "cite.html" . -}}
{{- if .Params.titleSeries }} (
{{- .Scratch.SetInMap "Params" "title" .Params.titleSeries -}}
{{- .Scratch.SetInMap "Params" "titleLang" .Params.titleSeriesLang -}}
{{- .Scratch.SetInMap "Params" "titleTr" .Params.titleSeriesTr -}}
{{- .Scratch.SetInMap "Params" "cite" .Params.citeSeries -}}
2023-08-07 22:23:46 +00:00
{{- .Scratch.SetInMap "Params" "schemaType" .Params.schemaTypeSeries -}}
2023-08-22 10:14:33 +00:00
{{- .Scratch.SetInMap "Params" "suppress" "true" -}}
2023-08-07 22:23:46 +00:00
{{- .Scratch.SetInMap "parentCite" "Params" ( .Scratch.Get "Params" ) -}}
2023-07-01 03:16:59 +00:00
{{- partial "cite.html" ( .Scratch.Get "parentCite" ) -}}
{{- with .Params.numberSeries }}, {{ . | safeHTML -}}{{- end -}}
){{- end -}}</span>
{{- end -}}
{{- end -}}
</figcaption>
</figure>