17 lines
579 B
HTML
17 lines
579 B
HTML
|
{{ if .Params.href }}
|
||
|
<a href="{{ if eq .Params.href "asCite" }}{{ .Params.cite }}{{ else }}{{ .Params.href }}{{end}}" target="_blank" rel="noopener noreferrer">
|
||
|
<cite class="cite {{ with .Params.citeStyle }}cite--{{ . }}{{ end }}"
|
||
|
{{ with .Params.cite }}cite="{{ . }}"{{ end }}
|
||
|
itemscope
|
||
|
itemtype="https://schema.org/
|
||
|
{{- with .Params.schemaType -}}
|
||
|
{{- . -}}
|
||
|
{{- else -}}
|
||
|
CreativeWork
|
||
|
{{- end -}}"
|
||
|
>
|
||
|
{{- .Params.title -}}
|
||
|
</cite>
|
||
|
</a>
|
||
|
{{ end }}
|