From c3ae95208104060ae658494af1a4beffb2360fee Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Mon, 1 Aug 2022 20:55:33 -0700 Subject: [PATCH] Improvements to citations - Put reply-context in a paragraph - Allow an itemid for mention-work --- layouts/partials/reply-context.html | 2 ++ layouts/shortcodes/mention-work.html | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/layouts/partials/reply-context.html b/layouts/partials/reply-context.html index 58c8e53..25ff180 100644 --- a/layouts/partials/reply-context.html +++ b/layouts/partials/reply-context.html @@ -11,6 +11,7 @@ {{- $replyAuthorRel = "publisher" -}} {{- end -}} diff --git a/layouts/shortcodes/mention-work.html b/layouts/shortcodes/mention-work.html index e8a20ee..fe57c88 100644 --- a/layouts/shortcodes/mention-work.html +++ b/layouts/shortcodes/mention-work.html @@ -4,12 +4,12 @@ {{- end -}} {{- if .Get "p" -}}

+ 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 -}}

{{- else -}} + 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 -}} {{- end -}}