Notes (please read):
- Currently, I’m just tracking here, maybe someone else encountered something similar.
- I am still trying to make sense of things. I don’t know why it works in 0.111.3 but throwing up errors in 0.112.x
- Unfortunately, I don’t have a cleaner/simpler test site for these currently. I will try to create one if time permits.
I run using the following: hugo server --renderStaticToDisk --cleanDestinationDir --disableFastRender --gc --printI18nWarnings --ignoreCache --noHTTPCache --printPathWarnings --panicOnWarning
I. error calling delimit: can't iterate over <nil>
{{- $keywords := "" -}}
{{- if .Params.keywords -}}
{{ $keywords = delimit .Params.keywords ", " }}
{{- else if or .Params.tags .Params.categories -}}
{{ $keywords = delimit (apply (union .Params.tags .Params.categories) "chomp" ".") ", " }}
{{- else -}}
{{ $keywords = delimit .Site.Params.keywords ", " }}
{{- end -}}
-
keywords
exist in site params
Note: Works fine in 0.111.3.
II. <$dateofcreation>: can't evaluate field UTC in type string
{{- $dateofcreation := "" -}}
{{- if .Site.Params.semweb.datecreated -}}
{{ $dateofcreation = time .Site.Params.semweb.datecreated }}
{{- else if .Site.Params.datecreated -}}
{{ $dateofcreation = time .Site.Params.datecreated }}
{{- end -}}
{{- $datePublished := (or $datefirstpublished .PublishDate .Date .Lastmod $dateofcreation).UTC | time.Format $iso8601 -}}
Note: Works fine in 0.111.3.
III. <time.Format>: error calling Format: unable to parse date:
{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}}
{{- $datePublished := (or $datefirstpublished .PublishDate .Date .Lastmod $dateofcreation) | time.Format $iso8601 -}}
Notes:
- I removed the .UTC (see previous error).
- Works fine in 0.111.3
At this point, I stopped, I figured I’m either doing something wrong… or there’s something else going on that I don’t understand. ^_^;;
Notes (please read):
- Currently, I’m just tracking here, maybe someone else encountered something similar.
- I am still trying to make sense of things. I don’t know why it works in 0.111.3 but throwing up errors in 0.112.x
- Unfortunately, I don’t have a cleaner/simpler test site for these currently. I will try to create one if time permits.