The theme is an hugo modules-theme. It is not possible to add this theme as a git submodule anymore.
This provides several benefits for the development of this theme.
Versioning / stable theme
With modules it is possible to point to any git hash you like. Nevertheless, it is strongly recommended to only use a versionised version of this theme. Checkout the GitHub Release page for the latest version.
You can run the follwing command to update/change the theme version:
hugo mod get -u github.com/StefMa/hugo-fresh@v[SEMVER_VERSION]
There can be als an
hash or an
branch name after the
- To use the theme you first have to transform your own hugo site to an module. Doing this is possible with the following command:
hugo mod init MODULE_NAME
A typical module name follows the following convention:
- After that you can declare the hugo module in your config file (yaml example):
module: imports: path: github.com/StefMa/hugo-fresh