Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

hampusctl-web

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.

Run locally (no local Hugo)

From this directory:

dagger -m ./hugo call serve --source=. up --ports=1313:1313

Or make serve. Keep the terminal open and open http://localhost:1313.

Test

dagger -m ./hugo call test --source=.

Build

dagger -m ./hugo call build --source=.
# Or export to ./public:
dagger -m ./hugo call build --source=. export --path=./public

Deploy to GitHub Pages

Configure 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-web

CI 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.

Module

The Dagger module lives in ./hugo and will be moved to hampusctl/daggerverse. See hugo/README.md for the full API.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages