33 lines
1.3 KiB
HTML
33 lines
1.3 KiB
HTML
{{- 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"
|
|
role="group">
|
|
<blockquote
|
|
class="blockquote__body"
|
|
{{- if .Params.cite }} cite="{{ .Params.cite }}"{{- end -}}>
|
|
{{- .Inner | .Page.RenderString -}}
|
|
</blockquote>
|
|
<figcaption class="blockquote__caption">
|
|
{{- if .Params.ibid -}}
|
|
<abbr lang="la" title="ibīdem [in the same place]">Ibid.</abbr>
|
|
{{- else -}}
|
|
<span itemprop="spokenByCharacter">{{- .Params.source | safeHTML -}}</span>
|
|
{{- 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" . -}}
|
|
{{- with .Params.numberSeries }}, {{ . | safeHTML -}}{{- end -}}
|
|
){{- end -}}</span>
|
|
{{- end -}}
|
|
{{- end -}}
|
|
</figcaption>
|
|
</figure>
|