HTTPS SSH

Hugo is a Fast and Flexible Static Site Generator built with love by spf13 and friends in Go.

This container is built using golang:latest and uses the latest version of Hugo.

To generate a new site:

docker run --rm -v `pwd`:/source headgeekette/hugo-docker new site ${NAME_OF_SITE}

To generate a new post:

docker run --rm -v `pwd`:/source headgeekette/hugo-docker new ${NAME_OF_POST}

You might have to change ownership and group in order to edit the necessary files after creating a new site and/or new post.

When running as a server, do not forget to specify the base url and bind to 0.0.0.0.

docker run --rm -p 1313:1313 -v `pwd`:/source headgeekette/hugo-docker \
     server \
    -b http://localhost:1313 --bind=0.0.0.0