hexo-theme-butterfly 安裝文檔(一)快速開始
爲了方便集中管理和更新,Butterfly文檔已經遷移至Butterfly網站。原docs.jerryc.me頁面也將會刪除同時,Valine的相關評論已經遷移到到Butterfly網站
重裝系統後重新部署恢復 Hexo blog
以下方法只適用於沒有刪除 hexo blog 文件夾 因為重裝系統後,Hexo 相關依賴插件/軟件和在 C 盤的緩存資料都會被刪除,以至於 Hexo 的相關命令都無法運行。所有,在重裝系統後,都要重新部署 Hexo。但是重新部署並不難,只需要幾個步驟就行。因為我的 hexo blog 文件夾不存儲於 C 盤,並沒有因為重裝系統被刪掉。所有重新部署很容易。 安裝 git 和 nodegit for windows: https://git-scm.com/Node.js: https://nodejs.org/en/ 生成 ssh 密鑰配置 git 個人信息和生成 ssh 密鑰打開 git bash,輸入 123git config --global user.name "xxxxx"git config --global user.email "xxxxxx@xx.com"ssh-keygen -t rsa -C "xxxxxx@xx.com" 把上面的 xxxx 換成自己的資料,然後一直 Enter 就行。 設置 Git ...
為Blog添加版權説明
最近更換了新的Hexo主題hexo-theme-hiker,覺得挺好看的。文章底部沒有版權説明,自己動手加上。 新建文件 copyright.ejs在themes\hiker\layout\_partial新建文件copyright.ejs 打開copyright.ejs,添加一下內容。 12345678910111213141516<div> <ul class="post-copyright"> <li class="post-copyright-author"> <strong><%= __('copyright.author') %> </strong><%= config.author%></a> </li> <li class="po ...
Hexo和Next主題的相關設置(持續更新)
字數統計和閲讀時長(網站底部/文章内)效果如圖 文章内 網頁頂部 安裝插件1npm install hexo-symbols-count-time --save 修改 站點配置文件1234567symbols_count_time: #文章内是否顯示 symbols: true time: true # 網頁底部是否顯示 total_symbols: true total_time: true 修改 主題配置文件123456789101112# Post wordcount display settings# Dependencies: https://github.com/theme-next/hexo-symbols-count-timesymbols_count_time: separated_meta: true #文章中的顯示是否顯示文字(本文字數|閱讀時長) item_text_post: true #網頁底部的顯示是否顯示文字(站點總字數|站點閱讀時長) item_text_total: false # Average Word Length (c ...