Build Your Own Blog with Hexo

This guide walks you through the process of creating a personal blog using Hexo. It includes environment setup, Hexo installation, theme configuration, and running the site locally.


1. Install Development Environment (Node.js)

Download and install the LTS version of Node.js from the official website:

🔗 https://nodejs.org/en


2. Install Hexo and Initialize Blog

Run the following commands in your terminal:

1
2
3
4
5
npm install -g hexo-cli          # Install Hexo CLI globally
hexo init blog # Initialize a new Hexo project
cd blog # Enter the project directory
npm install # Install dependencies
hexo server # Start the local development server

📘 Visit the official documentation: https://hexo.io/zh-cn/

3. Install Butterfly Theme

Butterfly is a powerful and beautiful theme for Hexo.
butterfly

Theme configuration

Just follow the guidelines to set up almost all the basic configurations.

butterfly configutation

Install Plugins

  • tag cloud: Other tag cloud plugins offer even cooler visual styles
    tag-cloud

  • live2d: A 2D model that makes your blog more lively and engaging
    live2d