You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tested with hugo v0.124.0-DEV-cf7023cb90f. This was not a problem with v0.122.0.
The problem occurs with multilingual sites. Monolingual sites are fine.
layouts/
└── _default/
├── baseof.html
├── home.html
├── list.html
├── list.xml <-- seen as sitemap template instead of rss template
└── single.html
git clone --single-branch -b hugo-forum-topic-48402 https://github.com/jmooring/hugo-testing hugo-forum-topic-48402
cd hugo-forum-topic-48402
hugo
Error: error building site: render: failed to render pages: render of "sitemapindex" failed: "/home/jmooring/code/hugo-testing/layouts/_default/list.xml:1:8": execute of template failed: template: _default/list.xml:1:8: executing "_default/list.xml" at <.Site.Title>: can't evaluate field Site in type []*hugolib.Site
The layouts/_default/list.xml template contains:
{{ .Site.Title }}
There are no problems if I rename the template to any of the following:
Tested with hugo v0.124.0-DEV-cf7023cb90f. This was not a problem with v0.122.0.
The problem occurs with multilingual sites. Monolingual sites are fine.
The layouts/_default/list.xml template contains:
There are no problems if I rename the template to any of the following:
Reference: https://discourse.gohugo.io/t/sitemapindex-and-site-title-error-on-list-html/48402
The text was updated successfully, but these errors were encountered: