Hugo Mod
Prerequisites
You should install the following softwares before start:
- Hugo Extended, Version 0.146 or later
- Git
- Go
Steps
Init a new site
hugo new site my-site --format=yamlImport theme with hugo mod
# Init hugo mod
cd my-site
hugo mod init github.com/username/my-site
# add Hugo Narrow
hugo 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:
module:
hugoVersion:
extended: true
min: 0.146.0
imports:
- path: github.com/tom2almighty/hugo-narrowLocalhost preview
hugo server --buildDrafts --disableFastRenderVisit http://localhost:1313 see your new site.
Update theme
To update ALL mods use the command:
hugo mod get -uTo update the theme mod use the command:
hugo mod get -u github.com/tom2almighty/hugo-narrowNote
Click Hugo Mod to visit hugo mod update documentation.