Creating a Web Page with Hexo

For the past decade or so, I used Wordpress for my website and blog. However, due to temporary neglect on my part, it was hacked by spammers. I decided I needed something super easy to maintain..

My friend had started to use Hexo to statically generate his website and I investigated it for a while. Then I started over with Hexo and the GabiThume Cactus-light theme.

Here’s what I did to get started on Arch Linux:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Install NodeJS LTS release
pacman -S nodejs-lts-erbium
# Build and install Hexo from an AUR package
git clone https://aur.archlinux.org/nodejs-hexo-cli.git
cd nodejs-hexo-cli
makepkg -si
cd ..
# Start the blog
hexo init blog
cd blog
npm install
# Install the theme
git clone https://github.com/gabithume/cactus-light themes/cactus-light
# Configure site and theme
vim _config.yml
vim themes/cactus-light/_config.yml
# Create a first post
hexo new post first
# Edit post
vim source/_post/first.md
# Generate everything
hexo generate
# Start a temporary web server, goto URL printed
hexo serve

Links:

Updated 2021-05-28: This page needed some reworking.