Post information date renders <span title='2024-01-03 00:00:00 +0000 UTC'>January 3, 2024</span>

Hi,
I believe this may be a hugo version issue when I build on github since I don’t have the issue on localhost. Is there a way to fix it or override it without changing the version?

using papermod 7.0
hugo v0.111.3 windows/amd64 BuildDate=2023-03-12T11:40:50Z VendorInfo=gohugoio

hugo version on github
HUGO_VERSION: 0.121.0

post_meta.html

{{- if not .Date.IsZero -}}

{{- $scratch.Add "meta" (slice (printf "<span title='%s'>%s</span>" (.Date) (.Date | time.Format (default "January 2, 2006" site.Params.DateFormat)))) }}

{{- end }}

The theme author fixed this a couple of months ago. Update the theme.

https://github.com/adityatelange/hugo-PaperMod/commit/7795c90f6fa106733267481d9ed0518b00f2c62c

Hi,
Thanks. However, when I update the theme, it does not seem compatible with my windows version of hugo.

I’m not sure what that means.

What version of Hugo are you running on Windows?

It is fine using this version on my local.
hugo v0.111.3 windows/amd64 BuildDate=2023-03-12T11:40:50Z VendorInfo=gohugoio

When I build on github pages with this version 0.121.0 it doesn’t render. Maybe try a newer or older version on github?

If you need additional assistance with the PaperMod theme, please raise your questions here:
https://github.com/adityatelange/hugo-PaperMod/discussions

Thank you Jmooring.

I just modified workflow to an older ubuntu build version 0.112.2 which was released similar date to my windows hugo version and it fixed the issue.

Using an earlier Hugo version (v0.112.2) is not the answer. You are simply deferring the correct fix.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.