Hello everyone,
I am facing the following issue with the current snap version (v0.94.0+extended linux/amd64) on ubuntu.
Executing hugo server
leads to the following error:
render of "page" failed: "/home/website/layouts/_default/baseof.html:33:8": execute of template failed: template: _default/single.html:33:8: executing "_default/single.html" at <.RSSLink>: can't evaluate field RSSLink in type *hugolib.pageState
I did no changes to my side which is still building in my pipeline with version 0.91.2.
I searched everywhere what could have caused this, but after one hour I am still empty handed and at my wits end as unfortunately I also don’t really understand the error message.
This is the only related code to RSSLink I could find in my baseof.html
:
{{ if .RSSLink }}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
Which looks how it is supposed to be (judging from the github issues I could find).
My _default/single.html
is quite basic:
{{ define "main" }}
<article class="container">
<main class="bd-content">
{{ .Content }}
</main>
</article>
{{ end }}
The only way how to get my local hugo development working again that I see is to downgrade the hugo version again, which I would like to avoid. So any help or pointers in the right direction on how to solve this issue would be greatly appreciated!