My blog using hugo narrow theme
Install Hugo Extended to your machine. Go is required to install Hugo Extended.
# Install gcc and related build packages
sudo apt install -y build-essential
# Install hugo
CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latestClone the repo with submodules
git clone --recurse-submodules git@github.com:ilkersigirci/my-blog.gitRun the server locally
hugo server -D --bind 0.0.0.0Update the theme
# Update the submodule to the latest commit
git submodule update --remote themes/hugo-narrow
# Push it to the github
git add themes/hugo-narrow
git commit -m "Update hugo-narrow submodule to latest"To run the hugo prompt file, in the copilot window
/hugo refactor the projectBuild Configuration
- Framework Preset: Hugo
- Build Command:
hugo --gc --minify - Publish Directory:
public