From 938810174bb7f2ebdfcdd9736d98df94e9ad5b44 Mon Sep 17 00:00:00 2001 From: eltrac Date: Fri, 1 May 2026 13:03:58 +0800 Subject: refactor: show webmention only when there is data --- layouts/_partials/posts/webmention.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/_partials/posts/webmention.html b/layouts/_partials/posts/webmention.html index 07e9454..9362379 100644 --- a/layouts/_partials/posts/webmention.html +++ b/layouts/_partials/posts/webmention.html @@ -48,6 +48,7 @@ {{ end }} + {{ if $webmentions }}

@@ -64,6 +65,7 @@ {{ partial "posts/webmention-mentions" $mentions }}

+ {{ end }} {{ else }}

Unable to fetch webmentions. Please contact webmaster.

{{ end }} -- cgit v1.2.3