add UPDATED to post

This commit is contained in:
2022-10-01 16:00:12 +03:00
parent 0a74684b10
commit cb88280d4a
2 changed files with 9 additions and 1 deletions

View File

@@ -14,7 +14,12 @@
<section class="bg-white border rounded shadow-sm p-3 mb-3 text-center">
<h3 class="m-0 p-0">{{ .Title }}</h3>
<i class="d-block mt-2 text-secondary">Опубликовано: {{ time.Format "2 January 2006 г." .PublishDate }}</i>
<div class="mt-2 text-secondary">
<i class="d-block">Опубликовано: {{ time.Format "2 January 2006 г." .PublishDate }}</i>
{{ if lt .PublishDate.Unix .Lastmod.Unix }}
<i class="d-block">Обновлено: {{ time.Format "2 January 2006 г." .Lastmod }}</i>
{{ end }}
</div>
<div class="border-top mt-3 p-3 pb-0">
{{ with .Params.tags }}