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 %}