Static site generation with Hugo using a docker container. See Readme for usage example.
855
docker pull utseresearch/hugo
Example run Hugo
docker run --rm -v `pwd`:/working -w /working utseresearch/hugo hugo new site quickstart
This will run hugo in the current working directory
cd quickstart
git init
Install theme
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
Create first post
docker run --rm -v `pwd`:/working -w /working utseresearch/hugo hugo new posts/my-first-post.md
serve site
docker run --rm -p 1313:1313 -v `pwd`:/working -w /working utseresearch/hugo hugo server --bind=0.0.0.0
Be sure to add --bind=0.0.0.0 like in the example above, so your host has access to the container
Now enter localhost:1313 in the address bar of your browser.
Content type
Image
Digest
Size
652.8 MB
Last updated
almost 6 years ago
docker pull utseresearch/hugo