From b34410365978685530f94d86a346ccd0a0d07e6b Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 10 Jul 2023 10:57:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=86=85=E5=AE=B9=E9=A1=B5?= =?UTF-8?q?=E5=8D=9A=E5=AE=A2=E6=9B=B4=E6=96=B0=E6=97=B6=E9=97=B4=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/post.pug | 3 +++ source/css/style.scss | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/layout/post.pug b/layout/post.pug index 81e09441..837daea3 100644 --- a/layout/post.pug +++ b/layout/post.pug @@ -7,6 +7,9 @@ block content .post h1.post-title= page.title .post-meta= page.date.format(config.date_format) + if page.updated + span= ' | ' + span.updated= page.updated.format(config.date_format) if page.categories.length > 0 span= ' | ' span.category diff --git a/source/css/style.scss b/source/css/style.scss index 84419f2b..8e3c0c00 100644 --- a/source/css/style.scss +++ b/source/css/style.scss @@ -305,6 +305,14 @@ div { padding-right: 0.3em; } + .updated { + &:before { + font-family: "FontAwesome"; + content: "\f021"; + padding-right: 0.3em; + } + } + .category { &:before { font-family: "FontAwesome";