Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workaround for Hugo
PublishDate
regression
Add a custom `rss.xml` default layout with a workaround for a `PublishDate` regression for Hugo v0.125 and newer where the `PublishDate` does not get set correctly for all generated files. Details can be found here: gohugoio/hugo#12438 Hugo documentation: https://gohugo.io/templates/rss/#template-lookup-order The `rss.xml` file is based on the upstream default template found here: ``` curl -LO https://raw.githubusercontent.com/gohugoio/hugo/3d40aba512931031921463dafc172c0d124437b8/tpl/tplimpl/embedded/templates/_default/rss.xml ``` The changed line is: ``` <pubDate>{{ (or .PublishDate .Date).Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> ```
- Loading branch information