git源碼
Demo: www.kunlingou.clubhtml
cnpm i -g hexo-cli
hexo init
cnpm install
複製代碼
./_config.yml
//部署(提交)模式
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
repo: git@github.com:kunlingou/kunlingou.github.io.git
branch: master
hexo s //啓動服務
複製代碼
cnpm i -S hexo-deployer-git
hexo clean
hexo g -d //生成後部署hexo generate hexo deploy
複製代碼
./source/CNAME
www.kunlingou.club
複製代碼
googleapis
相關連接jquery.min.js
.\themes\landscape\layout\_partial\after-footer.ejs
ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js
替換爲libs.baidu.com/jquery/2.0.3/jquery.min.js
。hexo clean
hexo g -d
複製代碼
./
git clone https://github.com/theme-next/hexo-theme-next themes/next
./_config.yml
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
# theme: landscape
theme: next
複製代碼
git clone https://github.com/theme-next/hexo-theme-next themes/next
git clone git@github.com:sabrinaluo/hexo-theme-replica.git themes/replica
hexo n "XXX"//新建文章
hexo g -d //生成靜態文件,生成後部署
hexo s //啓動本地服務器
hexo clean //清除緩存文件db.json和生成文件./public/
複製代碼
hexo --safe //安全模式
hexo --debug //調試模式
hexo --silent //靜默模式
複製代碼