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 }} -
{{ .Params.date.Format $dateFormat }}
+
+ + {{ if ne .Params.date .Params.lastMod -}} + [{{ i18n "lastMod" }} ] + {{- end }} +
{{ end }} {{ .Permalink }}