When comparing Hexo vs Gatsby JS, the Slant community recommends Gatsby JS for most people. In the question“What are the best static site generators?” Gatsby JS is ranked 9th while Hexo is ranked 12th.
Ranked in these QuestionsQuestion Ranking
Pro Fast and easy to use
Pro Deployment is easy and fast
Hexo built sites can be easily deployed to Github pages, Heroku, Openshift (custom cartridge needs to be setup) or any other custom solution (just copy over the
public folder). Any deployment is as simple as editing the
_config.yml file and running the
Pro Generating a blog is pretty fast
Generating a new blog with Hexo is generally really fast. Hexo truly lives up to it's name as a simple and fast static website generator.
Pro Constantly updated and actively maintained
Hexo's repository in GitHub is very active and it's actively being maintained. Updates are released every two or three months.
Pro Complete and helpful documentation
Hexo's documentation is very thorough and helpful, especially for people who are just starting with it.
Pro No page reload when navigating
Pro Based on React.js
Editing markup is phenomenally easy when you have components.
Pro A lot of plugins
Gatsby offers a lot of plugins to integrate tools like SASS, typescript, styled components, etc.
Pro Live reload
Every change you make can be almost immediately seen in a browser.
Pro Open Source
Pro Take content from any source
Gatsby can generate the pages with content from any sources like Drupal, Wordpress, Contentful, etc. If the source plugin is not coded for your solution, you can create it.
Pro A static site and a React app in one
The static pages are generated by Server Site Rendering of the React app. So you have all benefits of a static site, and all benefits of a React app, which is very powerful.
Pro GraphQL Data Layer
Pro A lot of examples
Gatsby have a lot of examples sites in his github repository.
Pro Very active development
Gatsby is very actively developed and the maintainers are very helpful.
Pro Beautiful out-of-the-box blog starters
Pro Built-in code and data splitting
Con Relatively large community but the majority is non-english speakers
Hexo has a relatively large following and community, especially in China. While this is certainly a positive, many developers who do not know chinese would be unable to follow all the guides and tutorials out there written by their chineses counterparts.
Con A bit raw
You'll maybe have to tweak some JSX if you want something that's not covered by available themes.