From 5f28b0e87efe4e56f0ed3e805d122242b89e5f8b Mon Sep 17 00:00:00 2001 From: Henri Bourcereau Date: Sat, 10 May 2025 16:51:35 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(webmentions):=20add=20hcard=20?= =?UTF-8?q?in=20post=20page=20(#524)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: welpo --- templates/page.html | 4 ++++ templates/partials/hcard.html | 2 +- templates/partials/hcard_small.html | 26 ++++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 templates/partials/hcard_small.html diff --git a/templates/page.html b/templates/page.html index 8ed6816..e458d64 100644 --- a/templates/page.html +++ b/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/templates/partials/hcard.html b/templates/partials/hcard.html index 91c023b..6479da6 100644 --- a/templates/partials/hcard.html +++ b/templates/partials/hcard.html @@ -16,7 +16,7 @@ {%- if hcard.avatar -%} {{ full_name }} + +