Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 596 Bytes

docker-readme.md

File metadata and controls

15 lines (10 loc) · 596 Bytes

A hugo image with asciidoctor compatibility

For my blog I built a docker image that allows building a hugo site with asciidoctor content. There are a few hacks I needed that are also baked into this image.

To write/live preview the content start hugo in dev mode and open localhost:1313

$ docker run --rm -v $PWD:/app -p 1313:1313 anoff/hugo-asciidoctor hugo server -D --bind 0.0.0.0

To build your site:

$ docker run --rm -v $PWD:/app anoff/hugo-asciidoctor hugo --gc --minify -d _site