fix: lastUpdateOn
All checks were successful
Blog Test / Check-Rebuild (push) Successful in 8s
Blog Test / Build (push) Successful in 11s
Blog Test / Deploy-Test (push) Successful in 11s
Blog Test / Test (push) Successful in 3s

This commit is contained in:
2026-04-02 19:10:52 +00:00
parent 1fccae5cd9
commit f4012a3391

View File

@@ -47,13 +47,13 @@
{{ end }} {{ end }}
</div> </div>
{{- $date := .Date.Format "20060102" | int -}} {{- $date := $Page.Date.Format "20060102" | int -}}
{{- $lastmod := .Lastmod.Format "20060102" | int -}} {{- $lastmod := $Page.Lastmod.Format "20060102" | int -}}
{{- if gt $lastmod $date -}} {{- if gt $lastmod $date -}}
<div class="article-lastmod"> <div class="article-lastmod">
{{ partial "helper/icon" "refresh" }} {{ partial "helper/icon" "refresh" }}
<time> <time>
{{ T "article.lastUpdatedOn" }} {{ .Lastmod | time.Format ( or .Site.Params.dateFormat.lastUpdated "Jan 02, 2006 15:04 MST" ) }} {{ T "article.lastUpdatedOn" }} {{ $Page.Lastmod | time.Format ( or $Page.Site.Params.dateFormat.lastUpdated "Jan 02, 2006 15:04 MST" ) }}
</time> </time>
</div> </div>
{{- end -}} {{- end -}}