git clone https://github.com/YiweiShen/yiweishen.github.io.git
cd yiweishen.github.io
npm install
npx hexo new post "Post Title"
By default, the post is created in source/_posts/Post-Title.md
. Edit the post in your favorite editor.
git checkout -b new-post
git add .
git commit -m "Add a new post"
git push origin new-post
Create a pull request on GitHub and merge it to the main branch. GitHub Actions will automatically build and deploy the site.