diff options
| author | eltrac <hi@eltr.ac> | 2026-05-01 13:03:58 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-05-01 13:03:58 +0800 |
| commit | 938810174bb7f2ebdfcdd9736d98df94e9ad5b44 (patch) | |
| tree | 38251525eafa4f242472ef5bd876a149f27e8e2a | |
| parent | 300c4ec51a56079ef71fe5d7cb7062b3cbe01c44 (diff) | |
refactor: show webmention only when there is data
| -rw-r--r-- | layouts/_partials/posts/webmention.html | 2 |
1 files changed, 2 insertions, 0 deletions
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 }} <div class="px-6 py-2 rd-lg my-4" style="background-color: oklch(from var(--block-background-color) l c h / calc(alpha - 0.5))"> <h2 class="flex items-center gap-2 text-lg"> @@ -64,6 +65,7 @@ {{ partial "posts/webmention-mentions" $mentions }} </div> </div> + {{ end }} {{ else }} <p>Unable to fetch webmentions. Please contact webmaster.</p> {{ end }} |
