Overview
The main configuration files of Alpha are located in the config/
folder inside Alpha’s theme folder /themes/alpha/config/_default
:
config/_default/
├── hugo.toml
├── languages.toml
├── menus.toml
└── params.toml
Note: Alpha also includes a hugo.toml
file at the root of the theme. This serves only as a template.
To safely customize Alpha without risking your changes being overwritten during updates, it’s highly recommended to copy the default theme configuration from:
themes/alpha/config/_default
…into your site’s root:
config/
This way, Hugo will use your locals version values, and future Alpha updates won’t override your settings.
Note: If you’re using Alpha as a Hugo module, you can download a pre-packaged version of the config folder here:Download Alpha Config
Attention: Avoid Config Merging Issues
If your project already has a complex setup with:
- A populated
config/_default/
folder, or - A large, root-level
hugo.toml
Do not merge files blindly!!!.
- Instead backup/rename your original files:
mv config/_default config/_default.old
mv hugo.toml hugo.toml.old
- Copy Alpha’s config folder to your root
config/
:
cp -r themes/alpha/config/_default config/
- Carefully integrate any custom values you had in your old config.
- Test your site thoroughly before deploying.