Finding unused config.toml parameters

My config.toml is messy, because I tried a few different themes before settling on one to start with.

I have a few parameters which I think are not used anywhere, but memory is foggy!

Is there any way to ask Hugo “what config parameters are not referenced?”

2 Likes

I don’t believe Hugo has such a feature but would love to see it implemented.

See the hugo config command https://gohugo.io/commands/hugo_config/

1 Like

If you’d like it for further reference you can use in the terminal:

hugo config > hugo-config.txt

Which writes the config in a textfile and stores it in your project folder (if you start the command in the root).