Custom `file.toml` in config?

I’ve read through this and am wondering if I can have my own somename.toml file.

The idea is to set up a small shop section and have the items NOT be mixed in with config tables.

I tried putting a shop.toml with [[item]] tables in but not sure how to call it.

{{ range .Shop.item -}}

<li>{{ .Name }}</li>

{{ end }}

Just gets errors. Not sure what I’m doing wrong there.

If I understand correctly you should look in to using Data Templates | Hugo.

Yep that’s the one. Thank you.
Took me a moment to adapt it (case sensitivity) but it’s much better than stuff piling up in the config folder.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.