Add last update time to article view

Would be nice to add it to the article list, do not know how to yet.
This commit is contained in:
Teo-CD 2021-05-22 23:25:37 +01:00
parent 3da93770d0
commit a6ac7d2616

View file

@ -15,7 +15,15 @@
</p> </p>
</a> </a>
<div class="tags has-addons level-item"> <div class="tags has-addons level-item">
<span class="tag is-rounded">{{ page.date | date(format="%F") }}</span> {% if page.updated %}
{% set latest_date = page.updated -%}
{% else %}
{% set latest_date = page.date -%}
{% endif %}
{% if latest_date %}
<span class="tag is-rounded">{{ latest_date | date(format="%F") }}</span>
{% endif %}
{% if page.taxonomies.authors %} {% if page.taxonomies.authors %}
<span class="tag is-rounded is-primary"> <span class="tag is-rounded is-primary">
{% for author in page.taxonomies.authors %} {% for author in page.taxonomies.authors %}
@ -64,7 +72,7 @@
<div class="columns is-multiline"> <div class="columns is-multiline">
<div class="column is-12"> <div class="column is-12">
<p> <p>
Published First published on
{{self::post_footer_date(page=page)}} {{self::post_footer_date(page=page)}}
{{self::post_footer_authors(page=page)}} {{self::post_footer_authors(page=page)}}
{{self::post_footer_categories(page=page)}} {{self::post_footer_categories(page=page)}}