1
0

Only print page info when there is date available

Useful for sub-pages which do not necessarily have such metadata.
This commit is contained in:
Emil Miler 2021-12-03 21:56:45 +01:00
parent 775a43dad2
commit 1ca0c21e98

View File

@ -17,10 +17,12 @@
{% endmacro %} {% endmacro %}
{% macro page_info(page) %} {% macro page_info(page) %}
<div class="info"> {% if page.date %}
<span class="date">{{ page.date }}</span> <div class="info">
{%- if page.extra.author -%} <span class="date">{{ page.date }}</span>
, <span class="author">{{ page.extra.author }}</span> {%- if page.extra.author -%}
{% endif %} , <span class="author">{{ page.extra.author }}</span>
</div> {% endif %}
</div>
{% endif %}
{% endmacro %} {% endmacro %}