| English | 中文 |
cd /Users/alnair/web/simple-blog-release
git init
git add .
git commit -m "Initial commit"
git branch -M main
git remote add origin https://github.com/YOUR-USERNAME/YOUR-REPO-NAME.git
git push -u origin main
https://YOUR-USERNAME.github.io/YOUR-REPO-NAME/
posts/npm run buildgit add .
git commit -m "Update blog posts"
git push
CNAME in the docs/ folder with your domain:
blog.example.com
YOUR-USERNAME.github.iocd /Users/alnair/web/simple-blog-release
git init
git add .
git commit -m "Initial commit"
git branch -M main
git remote add origin https://github.com/你的用户名/你的仓库名.git
git push -u origin main
https://你的用户名.github.io/你的仓库名/
posts/ 中添加/编辑 markdown 文件npm run buildgit add .
git commit -m "更新博客文章"
git push
docs/ 文件夹中创建名为 CNAME 的文件,内容为你的域名:
blog.example.com
你的用户名.github.iodocs/ folder contains your built websitenpm run build before committing changesdocs/ 文件夹包含构建好的网站npm run buildmain and folder is /docsdocs/index.html existsmain,文件夹是 /docsdocs/index.html 是否存在