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/mention-work.html

17 lines
444 B
HTML
Raw Normal View History

{{- $itemprop := "mentions" -}}
{{- with .Get "itemprop" -}}
{{ $itemprop = . }}
{{- end -}}
2022-06-11 02:24:54 +00:00
{{- if .Get "p" -}}
<p
2022-06-11 02:33:36 +00:00
{{- else }}
2022-06-11 02:24:54 +00:00
<span
2022-06-11 02:33:36 +00:00
{{- end }}
2022-06-11 02:24:54 +00:00
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 -}}
2022-06-11 02:24:54 +00:00
{{- if .Get "p" -}}
</p>
{{- else -}}
</span>
{{- end -}}