From 981babb95dad0567af540df59b37fa985a8d1e1f Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Tue, 2 Mar 2021 16:40:15 -0800 Subject: [PATCH] Fix: webmentions: support "likes" with no author Sometimes an author name isn't parsed; switch to title in those cases. --- layouts/posts/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 15ffae6..33f302e 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -38,7 +38,7 @@
{{ if (eq $webmention.type "like") -}} - {{ $webmention.author_name }} liked this + {{ if $webmention.author_name }}{{ $webmention.author_name }}{{ else }}{{ $webmention.title }}{{ end }} liked this {{else -}} {{ $webmention.title }} {{- end }}