搭建流程#
# Install hugo, build from source(go):
go install -tags extended github.com/gohugoio/hugo@latest
hugo version
# Create a new site
hugo new site MyFreshWebsite --format yaml # replace MyFreshWebsite with name of your website
# Install theme: PaperMod
# Inside the folder of your Hugo site `MyFreshWebsite`, run:
git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod
git submodule update --init --recursive # needed when you reclone your repo (submodules may not get cloned automatically)
# In `config.yml` add:
# theme: ["PaperMod"]
# Creat posts inside the folder of your Hugo site `MyFreshWebsite/content/`
# Test locally
# Commit and Push to Github
# Configure Github Action to CD your blog