From b169058e7190f381448adb8ee3d7f7b4de02507c Mon Sep 17 00:00:00 2001 From: SandaruKasa Date: Wed, 7 Jun 2023 01:21:31 +0300 Subject: [PATCH] `lastMod` support --- i18n/en.yaml | 3 +++ i18n/ru.yaml | 3 +++ layouts/partials/post-info.html | 12 +++++++++++- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/i18n/en.yaml b/i18n/en.yaml index 2ee8a65..f1f834c 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -51,3 +51,6 @@ lightTheme: readNext: other: "Read next" + +lastMod: + other: "Last modified:" diff --git a/i18n/ru.yaml b/i18n/ru.yaml index 18d99b1..6ca2673 100644 --- a/i18n/ru.yaml +++ b/i18n/ru.yaml @@ -48,3 +48,6 @@ lightTheme: readNext: other: "Читать далее" + +lastMod: + other: "Отредактировано:" diff --git a/layouts/partials/post-info.html b/layouts/partials/post-info.html index 2f39be0..5e42bdc 100644 --- a/layouts/partials/post-info.html +++ b/layouts/partials/post-info.html @@ -2,10 +2,20 @@ {{ if .Site.Params.dateFormat }} {{ $dateFormat = .Site.Params.dateFormat }} {{ end }} +{{ $machineDateFormat := "2006-01-02" }}
{{ if .Params.date }} - + {{ end }} {{ .Permalink }}