Hello,
I’ve recently migrated from Middleman to Hugo and I love it.
I am trying to clean up my project directory structure a bit. I eventually achieved the structure I want, but I am sure there is an easier way to do the same without so many changes to the config.toml.
I want to move my site source code to a subdirectory like “src” so that I keep all the generated stuff, deploy scripts, and dependencies out of it.
This is the final structure:
./bin
./node_modules
./public
./resources
./src
config.toml
package.json
yarn.lock
I’ve achieved that by changing each and every folder inside my config.toml like this:
archetypeDir = "src/archetypes"
assetDir = "src/assets"
contentDir = "src/content"
dataDir = "src/data"
layoutDir = "src/layouts"
staticDir = "src/static"
themesDir = "src/themes"
As you can see, these are 7 config settings to change the project root folder. Is there a way to achieve the same with simpler and DRYed config.toml? Couldn’t find it in the docs.
Thanks