Hello,
I have a test page in Markdown as follows:
+++
title = "Custom front matter with list values in TOML"
tags = ["custom-fm", "list-values"]
draft = false
animals = ["dog", "cat", "penguin", "mountain gorilla"]
strings-symbols = ["abc", "def", "two words"]
integers = [123, -5, 17, 1_234]
floats = [12.3, -5.0, -1.7e-05]
booleans = [true, false]
+++
blah
This is the single.html
in layout that I use for debug. The relevant portion is:
<hr>
<h3>All Page Params (for debug)</h3>
<p>
{{ range .Params }}
{{ printf "%#v" . }} <br/>
{{ end }}
</p>
But that outputs: https://ox-hugo.scripter.co/test/posts/custom-front-matter-with-list-values-toml/
Notice that for animals = ["dog", "cat", "penguin", "mountain gorilla"]
, it is printing only the value portion. How do I print the key portion (animals
) too?
Thanks.