Hey folks,
In my hugo.yaml
file I noted the configuration option
disablePathToLower: true
In my content
folder I’m using the following _content.gotmpl
structure:
{{ range $.Site.Data.pages }}
{{ $page := dict
"kind" "page"
"path" .id
"title" .label
}}
{{
$.AddPage $page
}}
{{ end }}
The data source pages.yaml
contains many records with the field of id
set to a character string that contains upper and lower case characters.
However, on rendering, all resulting output file names in public
are lowercased.
Am I setting the path
portion of the page dictionary wrongly or is this a glitch that happens with the new Content Adapter feature?
Previously in this hugo project, I had used a nested Hugo projct to generade markdown files from the yaml data, and the resulting files names used to remain unchanged wrt character case.
I was so happy when Content Adapters were introduced, as they eliminate such a error-prone step in building the site, but I need to keep these URLs under control