1
0

Print article info

This commit is contained in:
2021-12-02 12:08:48 +01:00
parent 593f510d59
commit d4f9870a56
3 changed files with 21 additions and 1 deletions

View File

@ -12,5 +12,15 @@
<article>
<h1><a href="{{ page.permalink }}">{{ page.title }}</a></h1>
<p>{{ page.summary | safe }}</p>
{{ self::page_info(page=page) }}
</article>
{% endmacro %}
{% macro page_info(page) %}
<div class="info">
<span class="date">{{ page.date }}</span>
{%- if page.extra.author -%}
, <span class="author">{{ page.extra.author }}</span>
{% endif %}
</div>
{% endmacro %}