Skip to main content

Hexo

Hexo is a static site-generator that uses markdown to create websites and blogs.

To install Hexo, run the following commands.

# Install NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash

# Close and reopen your terminal to start using nvm or run the following to use it now:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

# Install Node.js
nvm install stable

# Install Hexo with NPM
npm install -g hexo-cli

Create a directory where you want to store your site, and initialize with hexo.

mkdir /some/dir/site/
hexo init /some/dir/site/

Navigate to the site and clone the theme you want to use, for example, I chose Cactus Dark and modified the CSS and layout templates to suit my needs.

To install this theme -

cd /some/dir/site/
git clone https://github.com/probberechts/hexo-theme-cactus.git themes/cactus