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:
parent
3da93770d0
commit
a6ac7d2616
1 changed files with 11 additions and 3 deletions
|
@ -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)}}
|
||||||
|
@ -140,4 +148,4 @@ and
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endmacro post_footer_tags %}
|
{% endmacro post_footer_tags %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue