rendering problems with rss
lucasreddinger opened this issue · 2 comments
lucasreddinger commented
Hi there--thanks for the nice theme!
I'm trying to deploy a MWE to get your permalinks working as shown in your nice example site.
The MWE renders, but I get some errors that mention RSS:
$ hugo new site etc_hugo_permalinks
$ cd etc_hugo_permalinks/
$ git init
$ git remote add origin https://github.com/lucasreddinger/etc_hugo_permalinks.git
$ git submodule add https://github.com/LukasJoswiak/etch.git themes/etch
$ hugo new posts/post-aaa.md
$ vim content/posts/post-aaa.md
$ vim config.toml
$ cat content/posts/post-aaa.md
---
title: "Post Aaa"
date: 2021-09-28T09:43:40-07:00
draft: false
---
This is a post.
$ cat config.toml
baseURL = "https://www.lucasreddinger.com/etc/hugo_permalinks/"
languageCode = "en-us"
title = "etc / hugo permalinks"
theme = "etch"
[permalinks]
posts = "/:title/"
$ hugo
Building sites … ERROR 2021/09/28 09:45:57 render of "Posts" failed: "/home/lucas/etc_hugo_permalinks/themes/etch/layouts/_default/rss.xml:5:18": execute of template failed: template: _default/rss.xml:5:18: executing "_default/rss.xml" at <$pctx.RegularPages>: can't evaluate field RegularPages in type *hugolib.PageOutput
ERROR 2021/09/28 09:45:57 render of "Tags" failed: "/home/lucas/etc_hugo_permalinks/themes/etch/layouts/_default/rss.xml:9:19": execute of template failed: template: _default/rss.xml:9:19: executing "_default/rss.xml" at <.Site.Config.Services.RSS.Limit>: can't evaluate field RSS in type services.Config
ERROR 2021/09/28 09:45:57 render of "etc / hugo permalinks" failed: "/home/lucas/etc_hugo_permalinks/themes/etch/layouts/_default/rss.xml:9:19": execute of template failed: template: _default/rss.xml:9:19: executing "_default/rss.xml" at <.Site.Config.Services.RSS.Limit>: can't evaluate field RSS in type services.Config
Total in 140 ms
Error: Error building site: failed to render pages: render of "Categories" failed: "/home/lucas/etc_hugo_permalinks/themes/etch/layouts/_default/rss.xml:9:19": execute of template failed: template: _default/rss.xml:9:19: executing "_default/rss.xml" at <.Site.Config.Services.RSS.Limit>: can't evaluate field RSS in type services.Config
$
Thanks much for your help!
LukasJoswiak commented
I'm unable to reproduce this locally. What version of Hugo are you running?
$ hugo version
hugo v0.88.1+extended darwin/amd64 BuildDate=unknown
Are you using Netlify or is this local? If Netlify, see https://discourse.gohugo.io/t/rss-layout-template-failure/26990.
lucasreddinger commented
Well, this is embarrassing:
$ hugo version
Hugo Static Site Generator v0.53 openbsd/amd64 BuildDate: unknown
Sorry for the noise. I'm sure it will be fine when I get updated. Cheers.