From 74af4512e21749555186ef6ab390fb9d045df52a Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Wed, 30 Apr 2025 11:37:48 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style(html):=20enhance=20author?= =?UTF-8?q?=20name=20styling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - wrap author names in span with class "p-author" for consistent styling - modify author separator and conjunction for improved readability --- templates/page.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/page.html b/templates/page.html index f7f68cb..e516e49 100644 --- a/templates/page.html +++ b/templates/page.html @@ -123,14 +123,16 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e {%- endif -%} {%- if author_list | length == 1 -%} - {%- set author_string = author_list.0 -%} + {%- set author_string = '' ~ author_list.0 ~ '' -%} {%- else -%} {%- set last_author = author_list | last -%} {%- set other_authors = author_list | slice(end=-1) -%} {%- set author_separator = macros_translate::translate(key="author_separator", default=", ", language_strings=language_strings) -%} {%- set conjunction = macros_translate::translate(key="author_conjunction", default=" and ", language_strings=language_strings) -%} + {%- set conjunction = '' ~ conjunction ~ '' -%} {%- set author_string = other_authors | join(sep=author_separator) -%} {%- set author_string = author_string ~ conjunction ~ last_author -%} + {%- set author_string = '' ~ author_string ~ conjunction ~ last_author ~ '' -%} {%- endif -%} {%- set by_author = macros_translate::translate(key="by_author", default="By $AUTHOR", language_strings=language_strings) -%}