From ed47f2580ba4f8f15188c67f3b788b7472f4d78b Mon Sep 17 00:00:00 2001 From: welpo Date: Mon, 27 Feb 2023 00:55:17 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20add=20'Last=20updated'=20ex?= =?UTF-8?q?tra=20tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/shortcodes.md | 4 +++- sass/parts/_header.scss | 1 + templates/macros/content.html | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/content/shortcodes.md b/content/shortcodes.md index bbc3a58..7cdf550 100644 --- a/content/shortcodes.md +++ b/content/shortcodes.md @@ -1,8 +1,10 @@ +++ title = "Custom shortcodes" -date = "2023-02-19" +date = 2023-02-19 [taxonomies] tags = ["showcase", "shortcodes"] +[extra] +last_updated = 2023-02-26 +++ ## Image shortcodes diff --git a/sass/parts/_header.scss b/sass/parts/_header.scss index f0d78e2..e4246da 100644 --- a/sass/parts/_header.scss +++ b/sass/parts/_header.scss @@ -75,6 +75,7 @@ header { font-weight: 300; padding-top: 0.7vmin; padding-bottom: 3vmin; + line-height: 1.4rem; } .meta a { diff --git a/templates/macros/content.html b/templates/macros/content.html index 8e4d4d9..349cf1c 100644 --- a/templates/macros/content.html +++ b/templates/macros/content.html @@ -28,6 +28,10 @@ {% endif %} + {% if page.extra.last_updated %} +
Last updated on {{ macros_format_date::format_date(date=page.extra.last_updated) }} + {% endif %} +