Prerequisites
You should install the following softwares before start:
- Hugo Extended , Version 0.146 or later
- Git
- Go
Steps
Init a new site
1hugo new site my-site --format=yamlImport theme with hugo mod
1# Init hugo mod
2cd my-site
3hugo mod init github.com/username/my-site
4
5# add Hugo Narrow
6hugo mod get github.com/tom2almighty/hugo-narrowCopy exampleSite files
Copy the full files of hugo-narrow/exampleSite/ to the root folder. This method will NOT Create any files at ~/themes/, visit theme repository
see the files.
Modify hugo-narrow/config/_default/hugo.yaml, import theme according to hugo mod:
1module:
2 hugoVersion:
3 extended: true
4 min: 0.146.0
5 imports:
6 - path: github.com/tom2almighty/hugo-narrowLocalhost preview
1hugo server --buildDrafts --disableFastRenderVisit http://localhost:1313 see your new site.
Update theme
To update ALL mods use the command:
1hugo mod get -uTo update the theme mod use the command:
1hugo mod get -u github.com/tom2almighty/hugo-narrowNote
Click Hugo Mod to visit hugo mod update documentation.