1. Generate New Site #
Start by generating a new site using this command: hugo new site <ENTER SITE NAME (Name of Folder)>
. cd
into the directory after creating the site.
Something I could do in the future, include Vince with one of the hats.
2. Initialize Git Repo #
Initialize Git Repo with git init
.
Lets be concious with how we approach our naming scheme, using main/scondary instead of master/slave:
git checkout -m main
.
Add the remote repoository using git remote add origin <ENTER SITE NAME/GIT REPO>
.
3. Add Themes to Git Repo #
Depending on the Theme, you can do one of the following/both:
Add as Submodule #
Adding as a Submodule allows you to not have to download the files but instead track what would be changes based on the hash within Git Repo: git submodule add <REPOSITORY OF THEME> themes/<NAME OF THEME>
.
Add as Hugo Module #
Need to learn more about Hugo submodules.
4. Choose theme in Configuration #
Open hugo.toml
file & add the following: theme="<THEME NAME>"
.