From 05328e8151a3bc430469b064cb50bc6b54c272c0 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 5 Jun 2022 17:39:03 +0200 Subject: Rework post dates format --- layouts/partials/post-meta/date.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'layouts') diff --git a/layouts/partials/post-meta/date.html b/layouts/partials/post-meta/date.html index 42747f2..b2537b7 100644 --- a/layouts/partials/post-meta/date.html +++ b/layouts/partials/post-meta/date.html @@ -1,6 +1,7 @@ {{ $date := .Date | time.Format (site.Params.dateFormat | default "January 02, 2006") }} {{ $lastmod := .Lastmod | time.Format (site.Params.dateFormat | default "January 02, 2006") }} +{{ i18n "published_on" }} @@ -8,7 +9,9 @@ {{/* Check that lastmod exists and is greater than date (i.e. the last modified date must be after the publish date) */}} {{ if and (ne $lastmod $date) (gt .Lastmod .Date) }} + + {{ i18n "updated_on" }} {{ end }} -- cgit v1.2.3