YiweiShen / yiweishen.github.io

Home Page:https://yiweishen.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Steps to create a new post:

Git clone the repo

git clone https://github.com/YiweiShen/yiweishen.github.io.git

Install dependencies

cd yiweishen.github.io
npm install

Create a new post

npx hexo new post "Post Title"

Edit the post

By default, the post is created in source/_posts/Post-Title.md. Edit the post in your favorite editor.

Create a new git branch and push the changes

git checkout -b new-post
git add .
git commit -m "Add a new post"
git push origin new-post

Create a pull request

Create a pull request on GitHub and merge it to the main branch. GitHub Actions will automatically build and deploy the site.