mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-24 01:42:10 +00:00
Improvements to citations
- Put reply-context in a paragraph - Allow an itemid for mention-work
This commit is contained in:
parent
30e59289ce
commit
c3ae952081
2 changed files with 4 additions and 2 deletions
|
@ -11,6 +11,7 @@
|
|||
{{- $replyAuthorRel = "publisher" -}}
|
||||
{{- end -}}
|
||||
<aside role="note">
|
||||
<p>
|
||||
Reply to <span class="h-cite in-reply-to" itemprop="about" itemscope="" itemtype="https://schema.org/{{ $schemaType }}">
|
||||
<cite itemprop="name" class="p-name">
|
||||
<a class="u-url" itemprop="url" href="{{ .replyURI }}">{{ .replyTitle | safeHTML}}</a>
|
||||
|
@ -20,4 +21,5 @@
|
|||
<span itemprop="name" class="p-name fn n">{{ .replyAuthor }}</span></a>
|
||||
</span>
|
||||
</span>
|
||||
</p>
|
||||
</aside>
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
{{- 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" }}">
|
||||
class="h-cite{{ with .Get "reply" }} in-reply-to{{ end }}"{{ with .Get "itemid" }} itemid="{{ . }}"{{ 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" }}">
|
||||
class="h-cite{{ with .Get "reply" }} in-reply-to{{ end }}"{{ with .Get "itemid" }} itemid="{{ . }}"{{ end }} itemprop="{{ $itemprop }}"{{ with .Get "role" }} role="{{ . }}"{{ end }} itemscope="" itemtype="https://schema.org/{{ .Get "itemtype" }}">
|
||||
{{- .Inner | markdownify | safeHTML -}}
|
||||
</span>
|
||||
{{- end -}}
|
||||
|
|
Loading…
Reference in a new issue