1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-28 11:02:10 +00:00
seirdy.one/layouts/shortcodes/mention-work.html
2022-06-10 19:24:54 -07:00

16 lines
444 B
HTML

{{- $itemprop := "mentions" -}}
{{- with .Get "itemprop" -}}
{{ $itemprop = . }}
{{- end -}}
{{- if .Get "p" -}}
<p
{{ else -}}
<span
{{ end -}}
class="h-cite{{ with .Get "reply" }} in-reply-to{{ end }}" itemprop="{{ $itemprop }}"{{ with .Get "role" }} role="{{ . }}"{{ end }} itemscope="" itemtype="https://schema.org/{{ .Get "itemtype" }}">
{{- .Inner | markdownify | safeHTML -}}
{{- if .Get "p" -}}
</p>
{{- else -}}
</span>
{{- end -}}