feat: add 'Last updated' extra tag

This commit is contained in:
Óscar 2023-02-27 01:06:48 +01:00 committed by GitHub
commit ca96eeab54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,7 @@
+++ +++
title = "Custom shortcodes" title = "Custom shortcodes"
date = "2023-02-19" date = 2023-02-19
updated = 2023-02-26
[taxonomies] [taxonomies]
tags = ["showcase", "shortcodes"] tags = ["showcase", "shortcodes"]
+++ +++

View File

@ -75,6 +75,7 @@ header {
font-weight: 300; font-weight: 300;
padding-top: 0.7vmin; padding-top: 0.7vmin;
padding-bottom: 3vmin; padding-bottom: 3vmin;
line-height: 1.4rem;
} }
.meta a { .meta a {

View File

@ -28,6 +28,10 @@
</nav> </nav>
{% endif %} {% endif %}
{% if page.updated %}
<br>Last updated on {{ macros_format_date::format_date(date=page.updated) }}
{% endif %}
</div> </div>
</div> </div>