遷移指南
一些內建標籤已被移除(例如:gist
、youtube
、jsfiddle
和 vimeo
)。如果您在現有的部落格文章中使用這些標籤,您可以安裝 hexo-tag-embed,以便在 Hexo 7.0.0 中繼續使用它們。
$ npm i hexo-tag-embed |
注意
如果您在文章或頁面中沒有使用(或將不會使用)
gist
、youtube
、jsfiddle
、vimeo
標籤,則無需安裝。
重大變更
- chore:要求 node14+,由 @yoshinorin 在 #5061 中提出
- 已移除標籤功能。請參閱「遷移指南」章節。
- refactor:移除
gist
標籤,由 @yoshinorin 在 #5067 中提出 - refactor:移除
youtube
標籤,由 @yoshinorin 在 #5064 中提出 - refactor:移除
jsfiddle
標籤,由 @yoshinorin 在 #5066 中提出 - refactor:移除
vimeo
標籤,由 @yoshinorin 在 #5065 中提出
- refactor:移除
- 已移除功能
- refactor:移除
external_link
布林值類型,由 @yoshinorin 在 #5063 中提出 - refactor:移除
updated_option
的use_date_for_updated
選項,由 @yoshinorin 在 #5062 中提出
- refactor:移除
重大變更
- 遷移至 TypeSctipt
- refactor:為遷移至 typescript 做準備,由 @stevenjoezhang 在 #5094 中提出
- refactor:遷移 typescript,由 @stevenjoezhang 在 #5092 中提出
新功能
- feat(tags/post_link):同時搜尋 slug 和標題,由 @stevenjoezhang 在 #5114 中提出
- feat(open_graph):移除 google_plus,由 @stevenjoezhang 在 #5115 中提出
- feat(tags/img):支援在 img 標題和 alt 中使用引號,由 @stevenjoezhang 在 #5112 中提出
- feat(console-new):支援從路徑取得預設標題,由 @xu-song 在 #4714 中提出
- feat:新增選項以停用文章中的標題大小寫轉換,由 @renbaoshuo 在 #5156 中提出
修正
- fix(#1099):當變更配置時,hexo 伺服器錯誤,由 @D-Sketon 在 #5055 中提出
- fix:exclude_languages 在程式碼區塊中無法運作,由 @stevenjoezhang 在 #5088 中提出
- 當進行 Promise 化時,store 不會保留 disableNunjucks 屬性,由 @tcr 在 #2670 中提出
- fix(post):在非文章上跳過 before_post_render 和 after_post_render,由 @stevenjoezhang 在 #5118 中提出
- fix:無法建立具有特殊字元標題的文章,由 @D-Sketon 在 #5149 中提出
- fix(box):檢查無效檔案,由 @stevenjoezhang 在 #5173 中提出
效能
- perf:減少文章的遍歷次數,由 @stevenjoezhang 在 #5119 中提出
重構
- refactor highlight:為 highlight 新增擴展 API,由 @stevenjoezhang 在 #5095 中提出
- refactor:使用
WHATWG URL API
取代url.resolve
,由 @yoshinorin 在 #5136 中提出
相依性
- chore:將 sinon 從 13.0.2 升級至 14.0.0,由 @dependabot 在 #4965 中提出
- chore:將 lint-staged 從 11.2.6 升級至 13.0.3,由 @dependabot 在 #5008 中提出
- chore:將 husky 從 7.0.4 升級至 8.0.1,由 @dependabot 在 #4966 中提出
- chore:將 hexo-fs 從 3.1.0 升級至 4.0.0,由 @dependabot 在 #5077 中提出
- chore:將 hexo-renderer-marked 從 5.0.0 升級至 6.0.0,由 @dependabot 在 #5081 中提出
- chore:將 hexo-front-matter 從 3.0.0 升級至 4.0.0,由 @dependabot 在 #5087 中提出
- chore:將 abbrev 從 1.1.1 升級至 2.0.0,由 @dependabot 在 #5093 中提出
- chore:將 hexo-i18n 從 1.0.0 升級至 2.0.0,由 @dependabot 在 #5099 中提出
- chore:將 hexo-util 從 2.7.0 升級至 3.0.1,由 @dependabot 在 #5107 中提出
- chore:將 warehouse 從 4.0.2 升級至 5.0.0,由 @dependabot 在 #5101 中提出
- chore(deps):將
hexo-log
從3.2.0
更新至4.0.1
,由 @yoshinorin 在 #5096 中提出 - chore:將 sinon 從 14.0.2 升級至 15.0.0,由 @dependabot 在 #5121 中提出
測試
- test(benchmark):更新 hexo-many-posts 儲存庫,由 @SukkaW 在 #5128 中提出
- test(list_route):提高覆蓋率,由 @stevenjoezhang 在 #5097 中提出