Hi all,
I encountered a strange problem. I have a site that gets rendered without problems.
In a list.html I call {{ .Render “summary” }} inside a range loop.
{{ range .Pages }}
{{ .Render "summary" }}
{{ end }}
The list is called inside a section folder.
summary.html looks like this:
<article>
<div class="mb4">
<a class="link" href="{{ .RelPermalink }}">
<h2 class="f1-ns f2 red dim fw3 lh-title">{{ .Title }} {{ if .Draft }}:: DRAFT{{end}}</h2></a>
<a href="{{ .RelPermalink }}">
{{ $preview := .Resources.GetMatch "feature" }}
{{ with $preview }}
{{ $scaled := .Fill "900x600 CatmullRom Center" }}
<img class="dim ba b--moon-gray bw3" src="{{ $scaled.RelPermalink }}" class="w-100" alt="{{ $scaled.Title }}">
{{ end }}
</a>
<div class="w-100 mt1 pb1">
<p class="f3 fw3 lh-copy measure-wide">
{{ .Description }}
<a class="link red" href="{{ .RelPermalink}}"> {{ i18n "morelink" }}</a>
</p>
</div>
</div>
</article>
No problems when I build the site with hugo server
.
But when I alter a content file its entry in the list does not get rendered but instead I see this strange (metadata?) message:
http://localhost:1313/werbung/anzeigen/ Recent content in Anzeigen on foobar.com – Werbung Hugo -- gohugo.io Original-Theme is licensed with the Creative Commons Attribution 3.0 Unported License Tue, 03 Mar 2020 15:01:10 +0100
The line “Original-Theme is licensed with the Creative Commons Attribution 3.0 Unported License” comes from config.toml where I have the line:
copyright = "Original-Theme is licensed with the Creative Commons Attribution 3.0 Unported License"
The rest of the page is re-rendered fine on rebuilds.
I tried with and without any combination of
--buildDrafts
--disableFastRender
--debug
--watch
but I cannot track it down.
The content file has
draft: false
but the error occurs also with draft: true
.
When I restart hugo completely the rendering is fine again.
Any ideas?
Ciao!
juh