TIL that you can output all the data in “the dot” from a Hugo template using jsonify
<pre>{{ . | jsonify (dict "indent" " ") }}</pre>
Here is the output of the .Params
value for this post
<pre>{{ .Params | jsonify (dict "indent" " ") }}</pre>
{
"date": "2022-11-13T16:54:29-05:00",
"draft": false,
"iscjklanguage": false,
"lastmod": "2022-11-13T16:54:29-05:00",
"publishdate": "2022-11-13T16:54:29-05:00",
"tags": [
"hugo",
"ssg",
"debug"
],
"title": "Hugo Debug Jsonify"
}
November 13, 2022