Choose an installation method
There are two ways to install Ananke:
- Hugo Module: Hugo uses its built-in Go module system to get and manage the theme as a package.
- Git submodule: Git links the theme repository as a submodule inside your Hugo project.
The Hugo quick start guide installs Ananke as a Git submodule. This method works, but Hugo Modules use Go’s module system and give you better dependency management.
We recommend the Hugo Module method, because it makes it easier to manage and update the theme version.
[!NOTE] Do you already use Ananke from the old
theNewDynamicrepository? Read Upgrade from theNewDynamic to gohugo-ananke to update your references togithub.com/gohugo-ananke/ananke.
Compare Hugo Module and Git submodule #
| Method | Advantages | Disadvantages | Sample repository |
|---|---|---|---|
| Hugo Module (recommended) | Easier version management, automatic updates, better integration | Requires Go and an initial setup | Hugo Module template |
| Git submodule | Simple if you already use Git | Requires manual updates, can be difficult with some Git workflows | Git submodule template |