From 7c56b73716ad7258b50b95487ec64f4f5df7b11f Mon Sep 17 00:00:00 2001 From: zloylinux Date: Sun, 11 May 2025 15:55:56 +0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(webmentions):=20add=20hcard=20?= =?UTF-8?q?in=20post=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/tabi/templates/page.html | 4 +++ themes/tabi/templates/partials/hcard.html | 2 +- .../tabi/templates/partials/hcard_small.html | 26 +++++++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 themes/tabi/templates/partials/hcard_small.html diff --git a/themes/tabi/templates/page.html b/themes/tabi/templates/page.html index 8ed6816..e458d64 100644 --- a/themes/tabi/templates/page.html +++ b/themes/tabi/templates/page.html @@ -137,6 +137,10 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e {%- set previous_visible = true -%} {% endif %} + {% if config.extra.hcard and config.extra.hcard.enable and ( not author_list or author_list is containing(config.author)) %} + {% include "partials/hcard_small.html" %} + {% endif %} + {%- set separator_with_class = ""-%} {#- Date -#} diff --git a/themes/tabi/templates/partials/hcard.html b/themes/tabi/templates/partials/hcard.html index 91c023b..6479da6 100644 --- a/themes/tabi/templates/partials/hcard.html +++ b/themes/tabi/templates/partials/hcard.html @@ -16,7 +16,7 @@ {%- if hcard.avatar -%} {{ full_name }} + +