📢 This article was translated by gemini-3-flash-preview
First, you need to install the go environment.
| |
Then, initialize the module:
| |
Import the modules you want to add in your hugo.yml configuration file:
| |
Update the configuration:
| |
Module Storage
Since Hugo uses Go dependencies, use this command to see where the modules are actually stored:
| |
To vendor the dependencies into your own repository:
| |
This will create a vendor folder containing the project’s dependencies.
Usage
If you are using modules for a theme, you just need to create a local file with the same name. Modifying local files will override the files from the imported theme.