this is source of wittchen.io, which is my personal website and blog based on hugo
to create a new note (post), type
hugo new content/notes/my-new-note.md
hugo server -D
-D flag generates website with drafts
just update content and run command:
hugo
then commit and push your changes
deployment will be triggered automatically with github actions
build and run:
docker compose up -d
to rebuild container, use --build flag
by default, the base URL is http://localhost:8080/, for production, override it via build argument:
docker build -t wittchen-io --build-arg BASE_URL="https://wittchen.io/" .
docker run -p 80:80 wittchen-io
or in docker-compose.yml:
build:
context: .
args:
BASE_URL: https://wittchen.io/to stop and remove everything:
docker compose down --rmi all -v
Currently I'm using PaperMod Hugo theme, with some modifications inspired by the shadcn-ui