From d76079f63e44c92f1df2cded8eb19594ee50d457 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Fri, 19 Jan 2024 09:12:21 +0100 Subject: [PATCH] Do not show author name in article overview --- templates/macros.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/macros.html b/templates/macros.html index 78aa344..5ca08e0 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -6,23 +6,23 @@ {% if loop.index > count and count != 0 %} {% break %} {% endif %} - {{ self::print_article(page=page) }} + {{ self::print_article(page=page, author=false) }} {% endfor %} {% endmacro %} -{% macro print_article(page) %} +{% macro print_article(page, author=true) %}

{{ page.title }}

{{ page.summary | safe }}

- {{ self::page_info(page=page) }} + {{ self::page_info(page=page, author=author) }}
{% endmacro %} -{% macro page_info(page) %} +{% macro page_info(page, author=true) %} {% if page.date %}
{{ page.date }} - {%- if page.extra.author -%} + {%- if page.extra.author and author -%} , {{ page.extra.author }} {% endif %} {% if page.taxonomies.categories %}