From 6870dc8878eb69164ed8fc25ba711755b2050804 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Wed, 19 Jan 2022 14:25:26 +0800 Subject: [PATCH] :children_crossing: Feat: whatever the option 'dateFormat' is, show title with detail datetime --- layouts/_default/section.html | 2 +- layouts/_default/summary.html | 2 +- layouts/partials/single/footer.html | 2 +- layouts/posts/single.html | 4 +++- layouts/taxonomy/list.html | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/layouts/_default/section.html b/layouts/_default/section.html index 59165653..f4fa31f2 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -24,7 +24,7 @@ {{- .Title -}} - + {{- $.Site.Params.section.dateFormat | default "01-02" | .Date.Format -}} diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 06cbc99d..903e7536 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -32,7 +32,7 @@ {{- with .Site.Params.dateFormat | default "2006-01-02" | .PublishDate.Format -}} -   +   {{- printf `` . . | dict "Date" | T "publishedOnDate" | safeHTML -}} {{- end -}} diff --git a/layouts/partials/single/footer.html b/layouts/partials/single/footer.html index 16818828..95a01e2d 100644 --- a/layouts/partials/single/footer.html +++ b/layouts/partials/single/footer.html @@ -4,7 +4,7 @@