hugo-theme-next/layouts/partials/post/header_meta/update_date.html

17 lines
735 B
HTML
Raw Normal View History

{{ if and .Site.Params.postMeta.updated.enable .Site.Params.postMeta.updated.anotherDay }}
{{ if and .Lastmod (gt .Lastmod .Date) }}
{{ $modDate := .Lastmod.Format .Site.Params.dateFormat }}
{{ $modTime := .Lastmod.Format .Site.Params.timeFormat }}
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="fas fa-solid fa-calendar-check"></i>
</span>
<span class="post-meta-item-text" title="{{ T "PostMeta.lastmod.date" }}">
{{ print (T "PostMeta.lastmod.date") (T "Symbol.colon") }}
</span>
<time title="{{ print (T "PostMeta.lastmod.time") (T "Symbol.colon") }}{{ $modTime }}" itemprop="dateModified dateLastmod" datetime="{{ .Lastmod }}">
{{ $modDate }}
</time>
</span>
{{ end }}
{{ end }}