Hexo is a JavaScript blogging tool, much like it’s siblings Jekyll and Hugo.

Please enjoy reading Alice’s fictional story about setting up her Recipe blog.

Part 1 - Intro

Alice is a keen baker and photographer, she could probably win the Great British Bakeoff.

Her Hundreds and Thousands cupcakes went down such a storm at the local fayre, winning not just the “Tastiest Cupcake” award but a photography prize as well.

Her picture was so well received that she got numerous requests for the photo and the recipe that she wants to put the recipe on her new blog and the picture on Pexels

As Alice dabbles a bit in everything, she was on /cupcakes, but somehow ended up at /hexojs and decided to start a blog. So she did:

Part 2 - Setup

npm install -g hexo-cli

mkdir ~/prj/alicescakes
cd ~/prj/alicescakes

hexo init .
hexo new "Hundreds and Thousands Cupcakes"

Edit source/_posts/Hundreds-and-Thousands-Cupcakes.md

---
title: Hundreds and Thousands Cupcakes
date: 2016-07-08 16:17:15
tags: cupcakes, recipe
---

![Hundreds and Thousands Cupcakes](https://pixabay.com/static/uploads/photo/2014/02/17/15/25/bun-268237_960_720.jpg)

Ingredients:

150g lightly salted butter
150g caster sugar
3 eggs
125g self raising flour
2 tsp vanilla extract
Hundreds and thousands

Deploying

With Alice’s new found npm foo, she decided to host her site with Figroll and she signed up. Then she whipped out these lines:

$ npm install -g figroll-cli
$ figroll create

You created site:
    site: jam-67.figroll.in

$ figroll connect jam-67.figroll.in public/
$ figroll deploy

Your site had been deployed to staging:
    Staging URL: http://jdop2wex7ui8tsa5.x.figroll.in

$ figroll activate

Your site had been made live:
    Live URL: https://jam-67.figroll.in

Part 4 - Easter Cake with Sprinkles

Just the other day it was Alice’s friend Bob’s birthday. She doesn’t really communicate with Bob to often; they feel their words are best not transmitted over any medium. That’s not to say it’s anything nefarious or naughty, but they just like their privacy.

However! Bob, much to Alice’s astonishment, requested Alice’s birthday cake recipe as he’d enjoyed it so. He wanted to share it with some friends. Alice, being Alice, having a nice new blog, decided to put the recipe up there for everyone to see.

hexo new "Easter Cake with Sprinkles"

Edit source/_posts/Easter-Cake-with-Sprinkles.md

Filling in the contents as follows:

---
title: Easter Cake with Sprinkles
date: 2016-07-08 16:18:15
tags:
---

![Easter cake with Sprinkles](http://files.kaboompics.com/upload/1069_min.jpg)

Ingredients:

100g Dark Chocolate
190g Butter Softened
230g Golden Syrup
4 Eggs
150ml Buttermilk

225g Self Raising Flour
1tsp Baking Powder

Hundreds and thousands

Part 5 - Deploying Easter Cake with Sprinkles

$ figroll deploy

Your site had been deployed to staging:
    Staging URL: http://jdop2wex7ui8tsa5.x.figroll.in

$ figroll activate

Your site had been made live:
    Live URL: https://jam-67.figroll.in

Conclusion

Whilst short, setting up a Hexo blog and getting it hosted should take you little more than 5 minutes.

Tweet us with any questions.