Static Site Generators

May 20th, 2021

References

Jekyll

To preview your site with drafts

bundle exec jekyll serve --drafts

live reload

bundle exec jekyll serve --livereload

This command will open your website in the browser and uses jekyll built-in livereload server.

bundle exec jekyll serve -l -o

Hugo

Live reload is built-in in hugo.

Start the Hugo server with drafts (-D) enabled:

hugo server -D

to generate static files with drafts (-D) into public/ directory.

hugo -D

run with specific template name named ananke.

hugo server -t ananke