前言
因為不小心手殘把 local 的 Hexo 設定砍了..
所以藉此來紀念我的手殘及記錄一下我的 Hexo blog 做了哪些設定
設定 deploy 到 GitHub page 上
安裝套件
1
| npm install --save hexo-deployer-git
|
調整 _config.yml
1 2 3
| deploy: type: git repo: <repository url>
|
NexT
安裝 NexT
1
| npm install hexo-theme-next --save
|
將 NexT 的設定檔複製出來
1
| cp node_modules/hexo-theme-next/_config.yml _config.next.yml
|
把 _config.yml 中的 theme 改成使用 NexT
Sitemap
1
| npm install hexo-generator-sitemap --save
|
外部連結 nofollow
1
| npm install hexo-filter-nofollow --save
|
Minifier
安裝套件
1
| npm install hexo-all-minifier --save
|
在 _config.yml 中加入這個
搜尋
1
| npm install hexo-generator-searchdb --save
|
打開人數統計
把 busuanzi_count 的 enable 改成 true
1 2
| busuanzi_count: enable: true
|
使用 Gitalk 當留言板
[Gitalk]评论系统
新增 404 頁面
(23) 試著學 Hexo - SEO 篇 - 新增你的 404 頁面
文章置頂
1
| npm install hexo-generator-topindex --save
|
參考資料