Closed k-nut closed 1 year ago
This resolves the warning
.File.BaseFileName on zero object. Wrap it in if or with: {{ with .File }}{{ .BaseFileName }}{{ end }}
By replacing the check for the .Page.File.BaseFileName with an explicit new prop in the frontmatter which can be added when a page needs to load CSS.
It still is a bit implicit with the city param but I think this is better than before and it resolves the warning.
city
This resolves the warning
By replacing the check for the .Page.File.BaseFileName with an explicit new prop in the frontmatter which can be added when a page needs to load CSS.
It still is a bit implicit with the
city
param but I think this is better than before and it resolves the warning.