use PublishDate for single page view - antifascista - 🏴 The antifascist, anti-mainstream, anti-web Hugo theme.
(HTM) git clone git@git.drkhsh.at/antifascista.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 3375f0e6579f789b163de78171efc2158cbb6631
(DIR) parent f3da5bd761d35f05b6df77073d4c409ae460da32
(HTM) Author: drkhsh <me@drkhsh.at>
Date: Fri, 28 Feb 2025 22:07:35 +0100
use PublishDate for single page view
Diffstat:
M layouts/partials/postMetaDetailed.… | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/layouts/partials/postMetaDetailed.html b/layouts/partials/postMetaDetailed.html
@@ -1,7 +1,7 @@
<div class="post-meta">
<strong>
<span>Posted on</span>
- <time>{{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time>
+ <time>{{ .PublishDate.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time>
{{ with .Params.categories }}<span>in</span>{{ end -}}
{{- range $key, $value := .Params.categories -}}
{{- if $key }}, {{ end }}