From e3d0603a3f55463a053ec1cae6d39a5ce700dd7e Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Fri, 4 Feb 2022 11:28:18 -0800 Subject: [PATCH] Fix: handle webmentions without titles --- layouts/posts/single.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 7b2725e..3d472fc 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -44,9 +44,9 @@
{{ if (eq $webmention.type "like") -}} - {{ if $webmention.author_name }}{{ $webmention.author_name }}{{ else }}{{ $webmention.title }}{{ end }} liked this + {{ if $webmention.author_name }}{{ $webmention.author_name }}{{ else if $webmention.title }}{{ $webmention.title }}{{ else }}{{ $webmention.source }}{{ end }} liked this {{else -}} - {{ $webmention.title }} + {{ if $webmention.title }}{{ $webmention.title }}{{ else }}{{ $webmention.source }}{{ end }} {{- end }} {{ else -}}