This live version was generated with Hugo 0.26 and it works fine, $key kept its capitalization.
As you can see, the value has to preserve case or the URLs won’t work, but I need the title’s of the article references to preserve their case as well. Is there a better way to do this?
I am using Hugo 0.45 and it lowercases the $key. Why the change?
This worked perfectly, although I had to remove some of code:
ERROR 2018/12/14 18:27:12 “D:\Hugo\Sites\weathermodificiationhistory.com\content\timeline\1891-ohio-rain-wizard-frank-melbourne.md:11:1”: failed to unmarshal YAML: yaml: line 10: could not find expected ‘:’
I assumed your front matter was in JSON, so I gave the example in JSON. Now that I see your front matter is in YAML, I was surprised it worked for you. Then I learned that JSON is valid YAML, pretty funny.
If you wanted to rewrite this “the YAML way”, it’d be:
Thanks zwbetz,
I am a self taught trial by error coder, lol.
I liked YAML because it seemed simpler, and the code you just showed me is simpler.
I have three sites that I have turned into Hugo sites and I absolutely love it! https://climateviewer.com/ (blog, used to be Wordpress) http://climateviewer.org/ (map and 3D cesium globe)
and https://weathermodificationhistory.com/ (timeline, history references)
I suggest Hugo to everyone now.
Thanks again for the quick responses. If a newbie like me can use Hugo, everyone should be using it!