Static Site Generators
May 20, 2021

References

Jekyll

To preview your site with drafts

1
bundle exec jekyll serve --drafts

live reload

1
bundle exec jekyll serve --livereload

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

1
bundle exec jekyll serve -l -o

Hugo

Live reload is built-in in hugo.

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

1
hugo server -D

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

1
hugo -D

run with specific template name named ananke.

1
hugo server -t ananke