This repo contains a Hexo blog site deployed to GitHub Pages.
- Conda environment:
hexo(Node.js + npm installed inside it) - Git installed and authenticated with GitHub
cd D:\Downloads\code\blog
conda activate hexo
# install JS dependencies
npm installcd D:\Downloads\code\blog
conda activate hexo
# create a new post markdown under source/_posts/
hexo new post "<new-post-title>"It will generate a file like:
source/_posts/<new-post-title>.md
Open the markdown file and edit the content.
At the top of the post file:
---
title: My New Post Title
date: 2026-04-25 00:00:00
tags:
- tag1
- tag2
categories:
- category1
---cd D:\Downloads\code\blog
conda activate hexo
hexo clean
hexo serverThen open:
http://localhost:4000/
Stop the server with Ctrl + C.
This repo uses GitHub Actions to build and deploy automatically on push.
cd D:\Downloads\code\blog
git status
git add -A
git commit -m "Add post: My New Post Title"
git pushAfter pushing, go to the GitHub Actions page and wait for the workflow to finish.
- About page:
source/about/index.md - Theme config:
themes/maple/_config.yml - Site config:
_config.yml
