Would be especially awesome to have like a index.json or something like it where I could have the .Site.Title displayed, some config options, last update, etc.
WARN 2019/05/09 20:10:51 Found no layout for "home", language "en", output format "JSON": create a template below /layouts with one of these filenames: index.en.json.json, home.en.json.json, list.en.json.json, index.json.json, home.json.json, list.json.json, index.en.json, home.en.json, list.en.json, index.json, home.json, list.json, _default/index.en.json.json, _default/home.en.json.json, _default/list.en.json.json, _default/index.json.json, _default/home.json.json, _default/list.json.json, _default/index.en.json, _default/home.en.json, _default/list.en.json, _default/index.json, _default/home.json, _default/list.json
I’ve seen folks get decent results when they hit the docs and then ask questions and clarifications about the examples there. We like keeping the docs useful, so linking to the part you don’t understand really helps us all.
Then you just add a template file for it with whatever output you need. In my post below you find two examples. If possible I recommend building up an array (slice) and run it through “jsonify”. That way you are sure you output valid json.