From 2e29782279d8154cb9c6f1df9a2401612ec77948 Mon Sep 17 00:00:00 2001 From: welpo Date: Sun, 8 Jun 2025 22:42:37 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style:=20remove=20extra=20spacin?= =?UTF-8?q?g=20after=20author?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only seen when minification was set to `false`. --- templates/page.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/page.html b/templates/page.html index 8f85eb9..19c62bd 100644 --- a/templates/page.html +++ b/templates/page.html @@ -114,8 +114,8 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e
  • {{ macros_translate::translate(key="draft", default="DRAFT", language_strings=language_strings) }}
  • {% endif %} - {#- Author(s) -#} - {% if page.authors or config.author and macros_settings::evaluate_setting_priority(setting="show_author", page=page, default_global_value=false) == "true" %} + {#- Author(s) -#} + {%- if page.authors or config.author and macros_settings::evaluate_setting_priority(setting="show_author", page=page, default_global_value=false) == "true" -%} {%- if page.authors -%} {%- set author_list = page.authors -%} {%- else -%} @@ -139,20 +139,20 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e {%- set by_author = macros_translate::translate(key="by_author", default="By $AUTHOR", language_strings=language_strings) -%}
  • {{ by_author | replace(from="$AUTHOR", to=author_string) | safe }}
  • {%- set previous_visible = true -%} - {% endif %} + {%- endif -%} - {% if config.extra.hcard and config.extra.hcard.enable and ( not author_list or author_list is containing(config.author)) %} + {%- 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 %} + {%- endif -%} {%- set separator_with_class = ""-%} {#- Date -#} - {% if page.date and macros_settings::evaluate_setting_priority(setting="show_date", page=page, default_global_value=true) == "true" %} + {%- if page.date and macros_settings::evaluate_setting_priority(setting="show_date", page=page, default_global_value=true) == "true" -%}
  • {#- Variable to keep track of whether we've shown a section, to avoid separators as the first element -#} {%- set previous_visible = true -%} - {% endif %} + {%- endif -%} {#- Reading time -#} {%- if macros_settings::evaluate_setting_priority(setting="show_reading_time", page=page, default_global_value=true) == "true" -%}