HUGO

"hugo config" but for all default / fallback config settings

Is there a way to retrieve all the current default configs includiing the fallbacks?

Because hugo config basically outputs only things that are changed but for debugging purposes it might be useful to show all. Also to see if something is different in the core or how it is there.

For example when I add the following to config.toml I can see it in the output.

[related]
  includeNewer = true
  threshold = 80
  toLower = false

  [[related.indices]]
    name = "tags"
    weight = 100

  [[related.indices]]
    name = "date"
    weight = 10

But this is not the case when I do not add it to my config.toml.

This is related to https://github.com/gohugoio/hugo/issues/8002 because I guess I could have seen the issue by having the full generated config, especially because the default setting is extended at a place where I would not look / expect ist: https://github.com/gohugoio/hugo/issues/8002#issuecomment-735439077