使用hexo生成静态博客,托管在github
安装好nodejs和cnpm,可以参考这篇文章
git clone [email protected]:lyallchan/hexo_post.git blog
cd blog
npm install
直接在source/_post下新建md文件,然后hexo generate和deploy
cd blog
hexo d -g
mkdir blog
cd blog
npx hexo init
npm install hexo-deployer-git --save
npm install [email protected] --save
npm install hexo-simple-image --save
git init
cp _config.yml _config.next.yml .gitignore 拷贝配置文件
git add .
git commit -m "Update"
git remote add origin [email protected]:lyallchan/hexo_post.git
git push --set-upstream origin master