1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-14 01:32:11 +00:00
seirdy.one/layouts/shortcodes/cited-work.html
2024-04-05 17:56:15 -04:00

1 line
No EOL
346 B
HTML

<cite itemprop="name{{if .Get "extraName"}} {{ .Get "extraName" }}{{end}}" class="p-name">{{ if .Get "url" }}<a class="u-url" itemprop="url" href="{{ .Get "url" }}" {{- with .Get "lang" }} lang="{{ . }}" hreflang="{{ . }}"{{ end -}} {{- with .Get "rel" }} rel="{{ . }}"{{ end }}>{{ end }}{{ .Get "name" }}{{ with .Get "url" }}</a>{{ end }}</cite>