SY
sytelus/gunis
Guni's Enterprises
Gunis
Static site for Gunis built with Hugo extended v0.145.0 (Hugo Narrow requires ≥0.146.0; see version switching below).
Fresh setup (first clone)
- Clone with submodules so the theme is present:
git clone --recursive <repo-url>(or rungit submodule update --init --recursiveafter cloning). - Verify Hugo extended is installed and at least v0.145.0 (Hugo Narrow needs ≥0.146.0; see below if you switch).
- From the repo root, start the dev server (shows drafts):
hugo server -Dand open the printed localhost URL.
Add new content
- From the repo root run
hugo new content/portfolio/<slug>.mdto scaffold a page with front matter. - Drop product images in
static/img/portfolio/<slug>/and point theimagefield in the new file at the hero asset. - Update title/description as needed and set
draft = falsewhen the page is ready to publish.
Preview before deploy
- Quick start:
./view.sh(runshugo server -D --buildFuture --disableFastRenderand auto-fetches theme submodules). - Manual: start the live server (includes drafts) with
hugo server -D. - Open the localhost URL Hugo prints (default
http://localhost:1313/); it hot-reloads on save. Stop withCtrl+C.
Deploy (GitHub Pages)
- Deployment is automated via GitHub Actions: every push to
maintriggers.github/workflows/hugo.yaml(“Deploy Hugo site to Pages”) which builds with Hugo extendedv0.145.0and publishes to thegithub-pagesenvironment. - Custom domain: Settings ▸ Pages is configured to
www.gunis.aiwith “Enforce HTTPS” enabled (keepbaseurlinhugo.tomlashttps://www.gunis.ai/). DNS must pointwwwto GitHub Pages; allow time for the DNS check to turn green. - Manual build (optional sanity check before pushing):
./deploy.shorhugo --gc --minify --cleanDestinationDir; output lands inpublic/but usually you don’t pushpublic/—the action generates it for you.
Theme toggle
- Theme cascade is set to
["creative-portfolio", "hugo-narrow"]inhugo.toml. Default is Creative Portfolio; switch order if you want to preview Hugo Narrow. hugo-narrowlives atthemes/hugo-narrow(submodule). It requires Hugo extended ≥0.146.0.
Hugo versions (side-by-side)
- Local binaries are vendored in
bin/:./bin/hugo-145(default; works with Creative Portfolio)./bin/hugo-146(use when testing Hugo Narrow)
- Pick a version per command by setting
HUGO_BIN, e.g.:HUGO_BIN=./bin/hugo-145 ./view.sh# preview with 0.145.0 (default)HUGO_BIN=./bin/hugo-146 ./view.sh# preview with 0.146.0 (for Hugo Narrow)
./view.shdefaults to./bin/hugo-145and falls back to systemhugoif the binary is missing.
Notes
- Keep
baseurlinhugo.tomlpointing athttps://www.gunis.ai/so links and assets resolve correctly. - Run all commands from the project root.
On this page
Languages
CSS82.0%HTML11.4%JavaScript6.4%Shell0.2%
Contributors
Created November 9, 2023
Updated December 10, 2025