Switching to hexo.io

After trying to upgrade my Jekyll version from two years ago, and failing miserably, i decided to look for alternatives.

Meet Hexo.io

What is it?

The entire migration took me (incl. overdoing some pages and adding new ones) about 3 hours.

Since i am running nixos on my Macs, it’s easily doable with a shell.nix.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ pkgs ? import <nixpkgs> {} }:

let
lib = import <nixpkgs/lib>;
NODE_MODULES_PREFIX = toString ./node_modules;

in pkgs.mkShell {
packages = with pkgs; [
nodejs
nodePackages.npm
];

inherit NODE_MODULES_PREFIX;

shellHook = ''
export PATH="$PATH:$NODE_MODULES_PREFIX/hexo-cli/bin"
npm install
'';
}

Now i can just cd into my repo and run nix-shell and have hexo ready in my path, ready to make new posts!