A website built with Hugo and the LoveIt theme. Build, serve, test, and deploy are handled by the Dagger module in ./hugo—no local Hugo installation required.
From this directory:
dagger -m ./hugo call serve --source=. up --ports=1313:1313Or make serve. Keep the terminal open and open http://localhost:1313.
dagger -m ./hugo call test --source=.dagger -m ./hugo call build --source=.
# Or export to ./public:
dagger -m ./hugo call build --source=. export --path=./publicConfigure the repo so GitHub Pages deploys from the gh-pages branch. Then:
dagger -m ./hugo call deploy --source=. --github-token=env://GITHUB_TOKEN --repo=owner/hampusctl-webCI runs on push/PR (build + test) and deploys on push to main (see .github/workflows/hugo-pages.yaml).
Convenience targets: make serve (Docker, works on macOS), make serve-dagger (Dagger; port may not work on macOS), make test, make build, make build-export.
The Dagger module lives in ./hugo and will be moved to hampusctl/daggerverse. See hugo/README.md for the full API.