It is hard to choose a suitable static website generator, especially when you want to build website like blog for the first time. This is my first time to build a blog and have not enough time to go through some popular generators, which I have chosen Jekyll
at the beginning but it is not a best one. In the future I am going to try another generators.
Here is some brief information I found from Google and hope it should be useful for you to decide starting up on what generator.
I have selected three generators from GitHub, which are
WHAT is Static Website Generator
- HTML files;
- no server side processing or database communication;
- more secure than any dynamic website;
- super scaling when used with CDN;
- caching will bring more effective than dynamic pages;
- super fast to require.
Jekyll
- built in Ruby;
- supported by GitHub;
- use GitHub Pages for free to host.
Pros
- free and open source;
- RubyGems supports to build themes as gems;
- easy and simple to use;
- great GitHub Pages support;
- comes with default and decent minimal theme out of box.
Cons
As your website content grows, the build process becomes significantly slower.
Feature
Liquid
template engine;Gem
based themes;Markdown
andYAML
format support;Sass
pre-processing customize;CoffeeScript
support by official plugin.
Hugo
- built in Go.
Pros
- free and open source;
- speed, fast speed, engineered and optimized for speed;
- many built-in support;
- dynamic API driven content;
- unlimited content types;
- shortcakes, a flexible alternative to Markdown;
- i18n;
- redirection with aliases;
- pagination.
- pre-made Go templates and patterns;
- dependency free (no need Go installed, bc it’s pre-compiled binary);
- powerful content model.
Cons
- themes use Go templates so need to be familiar with Go;
- no ship with default theme;
- lack for extensibility and plugins(because Go is compiled language).
Features
Go
template;i18n
;- supporting dynamic
API
;
Hexo
- built in Node.js.
Pros
- also fast;
- easy to deploy on GitHub Pages;
- Chinese (maybe cons for non-Chinese);
- Chinese community.
Cons
- non-English.
Features
EJS
template engine;- supporting
Chinese
; - friendly with
HTML + CSS + Javascript
.
I am using
Jekyll
What I like
- Huge number of free themes and plugins;
- There are many tutorial for the beginners;
- Deploy on GitHub Pages without any skills.
What I dislike
- It is not supported by GitHub Pages to many plugins;
- I18n is not supported.
By the way, the build speed is not considered for me because of the small count of articles at the moment, which I might change to other generator when it becomes slightly slow on building with Jekyll in the future.
The rank of speed among three generators are Hugo > Hexo > Jekyll
.
The next generator would be Hugo
in the future and I would update this post.