Starting with hexo.io

I decided to run my personal web page using something light and fast. I did some research and I found Hexo! This is my very first post. That was not so hard. Below you can find steps I did to create this page.

Hexo

Quick Start

My instalation is based on Debian server and test environment on Xbuntu laptop.

Dependencies

Everything you need before install Hexo is Node.js and git.

Node.js

1
2
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
nvm install stable

git

1
sudo apt-get install git-core

If you would like to install latest version of git here is solution.

Ubuntu

Add ppa repository and install

1
2
3
sudo add-apt-repository ppa:git-core/ppa 
sudo apt update
sudo apt install git
Debian

Add repository and create pinning config

1
2
sudo echo "deb http://ftp.us.debian.org/debian/ sid main contrib non-free" > /etc/apt/sources.list
sudo nano /etc/apt/preferences.d/pinning

Paste configuration (where n=your_codename)

1
2
3
4
5
6
7
Package: *
Pin: release n=jessie
Pin-Priority: 700

Package: linux-image-amd64
Pin: release *
Pin-Priority: -1

Install latest version

1
sudo apt-get -t sid install git

Instalation

1
sudo npm install -g hexo-cli

Setup

1
2
3
hexo init <folder>
cd <folder>
npm install

And thats all.

Basic configuraton and Getting started you can find in Official Documentation

Server

To check your published files you can install hexo-server

1
sudo npm install hexo-server --save

then run it

1
hexo server

your page will be visible at http://localhost:4000

Themes

My page is using modified Cactus theme

1
git clone https://github.com/probberechts/hexo-theme-cactus.git themes/cactus

Here you can find other Themes

Plugins

My page is also using few plugins

Feed generator

1
npm install hexo-generator-feed --save

Search

1
npm install hexo-generator-search --save

Sitemap generator

1
npm install hexo-generator-seo-friendly-sitemap --save

Visit plugin page for more interesting plugins.

To check installed plugins use command:

1
npm ls --depth 0

Install plugin:

1
sudo npm install <plugin-name> --save

Uninstall plugin:

1
sudo npm uninstall <plugin-name>

Updates

Every administrator should use latest version of software. To check what version you have use command:

1
hexo --version

To update Hexo server, plugins and Npm go to your Hexo folder and run commands:

1
sudo npm update

and

1
sudo npm i -g npm