Configuration Structure
Here’s how a Thulite project configuration is organized, and the configuration files you will find in your new project.
Example
A common Thulite project configuration directory might look like this:
- config
- _default
- hugo.toml
- markup.toml
- menus.toml
- module.toml
- params.toml
- next
- hugo.toml
- params.toml
- production
- hugo.toml
- params.toml
- _default
- babel.config.js
- postcss.config.js
config/_default/
hugo.toml
The hugo.toml file includes
Hugo configuration options for your Thulite project. Here you can specify taxonomies to use, build options, server options, and more.
markup.toml
The markup.toml file is where you
configure rendering of markup to HTML.
menus.toml
The menus.toml file is where you
define menu entries.
module.toml
The module.toml file specifies the
Hugo mounts, logically linking node_modules directories to component folders (ex: assets, layouts) — making Thulite Integrations available in your Thulite project.
params.toml
The params.toml file is where you set
Thulite configuration options like e.g. options for themes and integrations.
config/next/
Overrides for your next environment.
config/production/
Overrides for your production environment.
Set baseurl in hugo.toml to the absolute URL (protocol, host, path, and trailing slash) of your published site (e.g., https://www.example.org/docs/).
babel.config.js
The babel.config.js file is where you configure
Babel. Thulite supports processing JavaScript files with Babel.
postcss.config.js
The postcss.config.js file is where you configure
PostCSS. Thulite uses PostCSS to add vendor prefixes to CSS rules using
Autoprefixer and to remove unused CSS from your project using
PurgeCSS.
Learn more
Configuration
Overview of Hugo configuration concepts and file formats.