1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-25 02:02:11 +00:00
seirdy.one/layouts/shortcodes/cited-work.html

1 line
434 B
HTML
Raw Normal View History

2024-09-21 03:08:17 +00:00
<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 }}{{ if .Get "rend" }}{{ .Get "name" | .Page.RenderString | safeHTML }}{{ else }}{{ .Get "name" }}{{ end }}{{ with .Get "url" }}</a>{{ end }}</cite>