Cataloguer/layouts/partials/cite.html

16 lines
466 B
HTML

{{- $itemType := default "CreativeWork" .schemaType -}}
{{- with .c -}}
<cite
class="cite{{ with .CiteStyle }} cite--{{ . }}{{ end }}"
itemscope
itemprop="citation"
itemtype="https://schema.org/{{- $itemType -}}"
{{- if .TitleLang -}}
lang="{{- .TitleLang -}}"
title="{{- .TitleTrans -}}"
{{- end -}}>
{{- default .Title $.title -}}
</cite>
{{- if .Edition }} <span class="edition">({{ .Edition }})</span>{{- end -}}
{{- end -}}