From a4f5f797b690c40029c196be4ea22e61da34b4c6 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Thu, 30 Jun 2022 08:35:05 -0700 Subject: [PATCH] Fix authorship metadata --- layouts/partials/reply-context.html | 10 +++++++++- layouts/partials/webmentions.html | 5 +++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/layouts/partials/reply-context.html b/layouts/partials/reply-context.html index 8e24bf0..58c8e53 100644 --- a/layouts/partials/reply-context.html +++ b/layouts/partials/reply-context.html @@ -2,12 +2,20 @@ {{- with .replyType -}} {{- $schemaType = . -}} {{- end -}} +{{- $replyAuthorType := "Person" -}} +{{- with .replyAuthorType -}} + {{- $replyAuthorType = . -}} +{{- end -}} +{{- $replyAuthorRel := "author" -}} +{{- if eq $replyAuthorType "Organization" -}} + {{- $replyAuthorRel = "publisher" -}} +{{- end -}}