Hexo Install and Setup on Raspberry Pi


Article Outline
  1. 1. Requirements
  2. 2. Install Hexo
  3. 3. Create a Starter Website
Keywords: ,

Hexo is a framework tool for generating static websites.

Requirements

The only requirement are:

  • Node.js
    • Node.js and Node Package Manager (NPM) are required to install hexo and plugins.
  • Git

Install Hexo

Run the following command to install hexo-cli globally:

1
$ sudo npm install -g hexo-cli

Create a Starter Website

  • Create a New Folder
1
$ mkdir <folder>
  • Initialize Hexo in the target <folder>
1
hexo init <folder>
  • Once initialized, here’s what your project folder will look like:
1
2
3
4
5
6
7
8
.
├── _config.yml
├── package.json
├── scaffolds
├── source
| ├── _drafts
| └── _posts
└── themes
  • To Serve the website locally (port 4000 default),
1
2
$ cd <folder>
$ hexo s