The demo site builds (on themes.gohugo.io), I think, fail for my theme. This may arise due to the fact that I have multiple config files in my exampleSite
, none of which are named config
. Is there any way for me to explicitly define the build command for themes.gohugo.io demo build? Something as simple as hugo --config posts.toml
Yes, just enter hugo help
at your terminal, and all the switches are there.
You can specify the config with --config
, e.g.:
hugo --config="/path/to/project/config.toml" --baseURL="https://mysite.com" -s /path/to/project/ -d /tmp/mysite.com
1 Like
No. This is not possible.
For your Theme’s demo to generate on the Hugo wesite you really need to have a config.toml
under /exampleSite/
If there were any kind of flags for the Build Script or support for multiple config files we would have mentioned these in the README.
2 Likes
Looks like I misunderstood the question. Sorry about that.
@RickCogley No problem.