From 31ea93bbbe8aba1a9fe7c3a6dc6b08b5c9cf7354 Mon Sep 17 00:00:00 2001 From: welpo Date: Mon, 27 Feb 2023 01:03:33 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20use=20native?= =?UTF-8?q?=20`updated`=20field?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/shortcodes.md | 1 + templates/macros/content.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/content/shortcodes.md b/content/shortcodes.md index 7cdf550..bde4677 100644 --- a/content/shortcodes.md +++ b/content/shortcodes.md @@ -1,6 +1,7 @@ +++ title = "Custom shortcodes" date = 2023-02-19 +updated = 2025-02-26 [taxonomies] tags = ["showcase", "shortcodes"] [extra] diff --git a/templates/macros/content.html b/templates/macros/content.html index 349cf1c..9fd3c94 100644 --- a/templates/macros/content.html +++ b/templates/macros/content.html @@ -28,8 +28,8 @@ {% endif %} - {% if page.extra.last_updated %} -
Last updated on {{ macros_format_date::format_date(date=page.extra.last_updated) }} + {% if page.updated %} +
Last updated on {{ macros_format_date::format_date(date=page.updated) }} {% endif %}