Hugo Blog

Creating a new blogpost

docker compose exec -it hugo hugo new content/posts/BLOGPOST_NAME.md

docker-compose.yaml config:

services:
  hugo:
    image: klakegg/hugo:ext
    command: server --bind=0.0.0.0 --baseURL=https://blog.decappi.dev/ --appendPort=false --liveReloadPort 443 #since I'm too lazy to setup an nginx
    user: 1000:1000 #created files will belong to the user on host

Server Documentation

Hugo can also generate static files:

docker compose exec -it hugo hugo -w

But then I’ll need to setup an nginx to serve them static files. No live reload is possible either. :( Documentation