mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-26 18:32:10 +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 -}}
|