An Introduction to Hexo

Static site generators allow you to store a website’s content in separate files with simple formatting (like Markdown) and define all markup, styling and scripts elsewhere. Then you run a special command and turn these files into plain HTML that’s served to the user.

There are lots of solutions to choose from, and in this guide I’d like to present Hexo, an open-source static site generator suitable for building blogs and documentation websites. The following topics will be covered:

  • Hexo’s features, pros and cons
  • installing Hexo and configuring it
  • working with layouts
  • generating posts and providing content
  • customizing and installing third-party themes
  • providing internationalization data for different languages
  • deploying to Heroku

After working through this guide, you’ll be familiar with Hexo and be able to create your own sites.