Is there a way to have case-insensitive frontmatter map keys

Hi,
Hugo seems to lowercase all map keys in the front matter. But I have a piece of software generating such frontmatters where I need it to retain case sensitivity; For example:

---
fields:
  fieldA_: "Descr1"
  fieldB_: "Descr2"
---

if I

{{ range $ix,$v := .Page.Params.fields }}
{{ $ix }}
{{ end }}

I simply get fielda_ fieldb_. Is there a way to get the case-sensitive version of the keys?

No, there is not.

Cool; thanks for the quick reply; I’ll just fork the other piece of software and duplicate the keys as values then

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.