From ed47f2580ba4f8f15188c67f3b788b7472f4d78b Mon Sep 17 00:00:00 2001 From: welpo Date: Mon, 27 Feb 2023 00:55:17 +0100 Subject: [PATCH 1/4] =?UTF-8?q?=E2=9C=A8=20feat:=20add=20'Last=20updated'?= =?UTF-8?q?=20extra=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 %} + From 31ea93bbbe8aba1a9fe7c3a6dc6b08b5c9cf7354 Mon Sep 17 00:00:00 2001 From: welpo Date: Mon, 27 Feb 2023 01:03:33 +0100 Subject: [PATCH 2/4] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20use=20nati?= =?UTF-8?q?ve=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 %} From abfe2f9dc88ce6ec05f63feacd3998db2e9696f6 Mon Sep 17 00:00:00 2001 From: welpo Date: Mon, 27 Feb 2023 01:04:32 +0100 Subject: [PATCH 3/4] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20fix:=20update=20year?= =?UTF-8?q?=20to=20current=20year?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/shortcodes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/shortcodes.md b/content/shortcodes.md index bde4677..1fbb267 100644 --- a/content/shortcodes.md +++ b/content/shortcodes.md @@ -1,7 +1,7 @@ +++ title = "Custom shortcodes" date = 2023-02-19 -updated = 2025-02-26 +updated = 2023-02-26 [taxonomies] tags = ["showcase", "shortcodes"] [extra] From bd72fb84be73af5e303889e49df332ada970d37e Mon Sep 17 00:00:00 2001 From: welpo Date: Mon, 27 Feb 2023 01:05:25 +0100 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=94=A5=20refactor:=20remove=20extra?= =?UTF-8?q?=20last=5Fupdated=20date?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/shortcodes.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/content/shortcodes.md b/content/shortcodes.md index 1fbb267..2bf34ae 100644 --- a/content/shortcodes.md +++ b/content/shortcodes.md @@ -4,8 +4,6 @@ date = 2023-02-19 updated = 2023-02-26 [taxonomies] tags = ["showcase", "shortcodes"] -[extra] -last_updated = 2023-02-26 +++ ## Image shortcodes