mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
15 lines
641 B
HTML
15 lines
641 B
HTML
{{- $itemprop := "mentions" -}}
|
|
{{- with .Get "itemprop" -}}
|
|
{{ $itemprop = . }}
|
|
{{- end -}}
|
|
{{- if .Get "p" -}}
|
|
<p
|
|
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 -}}
|
|
</p>
|
|
{{- else -}}
|
|
<span
|
|
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 -}}
|
|
</span>
|
|
{{- end -}}
|