Usig hexo for blogging

I decided to move to a markdown based, static, website generator and opted to use hexo.

Setup

To start writing install the hexo cli and initialize the work folder

1
2
3
4
npm install hexo-cli -g
hexo init blog
cd blog
npm install

Run the preview server with hexo server and visit localhost:4000

Basic configuration

General configuration reside in _config.yml most noticeable blog title and meta information.

Create a post

Create a new post with hexo new "My post". It will be placed in sources/_posts

More details about the metadata of the post can be found at https://hexo.io/docs/front-matter.html

Installing a theme

Themes can be choosen from the themes gallery and installed under theme folder. Click on the theme name to get to the repository.

For example to use minima add it to the theme folder

1
2
cd themes
git clone https://github.com/adisaktijrs/hexo-theme-minima.git minima