From e3bf2be869dbf4b3aae0e0607c0169a9a41bb8db Mon Sep 17 00:00:00 2001 From: Tory Deng <3070053397@qq.com> Date: Sun, 14 Apr 2024 04:54:46 +0800 Subject: [PATCH 1/3] add last updated date to posts --- _layouts/post.liquid | 3 ++- _posts/2024-01-27-vega-lite.md | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/_layouts/post.liquid b/_layouts/post.liquid index 1c5c52fc44e6..623b6854a553 100644 --- a/_layouts/post.liquid +++ b/_layouts/post.liquid @@ -18,8 +18,9 @@ layout: default

{{ page.title }}

- {{ page.date | date: '%B %d, %Y' }} + Created: {{ page.date | date: '%B %d, %Y' }} {% if page.author %}• {{ page.author }}{% endif %} + {% if page.last_updated %}   |   Last Updated: {{ page.last_updated | date: '%B %d, %Y' }}{% endif %} {% if page.meta %}• {{ page.meta }}{% endif %}

diff --git a/_posts/2024-01-27-vega-lite.md b/_posts/2024-01-27-vega-lite.md index e94c3deeb87d..099eb88f6940 100644 --- a/_posts/2024-01-27-vega-lite.md +++ b/_posts/2024-01-27-vega-lite.md @@ -2,6 +2,7 @@ layout: post title: a post with vega lite date: 2024-01-27 00:20:00 +last_updated: 2024-04-14 04:30:00 description: this is what included vega lite code could look like tags: formatting charts categories: sample-posts From aa6a9d29e9afe8ec23578dc2d8b36173d6582063 Mon Sep 17 00:00:00 2001 From: Tory Deng <3070053397@qq.com> Date: Wed, 17 Apr 2024 23:06:53 +0800 Subject: [PATCH 2/3] change the format of date and last updated date --- _layouts/post.liquid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_layouts/post.liquid b/_layouts/post.liquid index 623b6854a553..91c212353c28 100644 --- a/_layouts/post.liquid +++ b/_layouts/post.liquid @@ -18,9 +18,9 @@ layout: default

{{ page.title }}

{{ page.title }}