I’m trying to use hugo to build up a corpus of recipes. Here’s an example recipe:
---
name: Tom Collins
ingredients:
Club Soda: 4oz
Gin: 2oz
Lemon Juice: 1oz
Simple Syrup: 1tsp
---
Here’s the template fragment to render it:
<h1><a href="{{ .RelPermalink }}">{{ .Params.name }}</a></h1>
<ul>
{{ range $ingr, $amount := .Params.ingredients }}
<li>{{ $amount }} {{ $ingr }}</li>
{{ end }}
</ul>
Bizarrely, when it is rendered, the ingredients get lowercased:
<h1><a href="/cocktails/drinks/tom-collins/">Tom Collins</a></h1>
<ul>
<li>4oz club soda</li>
<li>2oz gin</li>
<li>1oz lemon juice</li>
<li>1tsp simple syrup</li>
</ul>
Is there something about dictionaries in hugo that force them to be lowercased? Is there a way for me to opt out of this behavior, other than finding the relevant code, replacing it, and having a fork of hugo?