diff --git a/docs/changelog.md b/docs/changelog.md index 9f3ecc840..970e1e5ab 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,9 +1,12 @@ --- title: 更新日志 -icon: update +icon: clock +order: 8 +redirectFrom: /ref/changelog.html --- + ### [0.48.1](https://github.com/Mereithhh/van-blog/compare/v0.48.0...v0.48.1) (2023-03-06) @@ -47,6 +50,7 @@ icon: update * type error ([2bd7f86](https://github.com/Mereithhh/van-blog/commit/2bd7f86eee6697b3046a5c57352c6f86eb56796b)) * 修复dark模式刷新页面后,Code代码阴影问题 ([#226](https://github.com/Mereithhh/van-blog/issues/226)) ([b4774e5](https://github.com/Mereithhh/van-blog/commit/b4774e51af61a4920851bf60ba67bbb5278903f2)) + ## [0.48.0](https://github.com/Mereithhh/van-blog/compare/v0.47.0...v0.48.0) (2023-02-27) ### ✨ Features | 新功能 diff --git a/scripts/releaseDoc.js b/scripts/releaseDoc.js index af28bbbf1..3cd854142 100644 --- a/scripts/releaseDoc.js +++ b/scripts/releaseDoc.js @@ -2,8 +2,14 @@ const insertLog = () => { const fs = require("fs"); const log = fs.readFileSync("CHANGELOG.md", { encoding: "utf-8" }); const newLog = - "---\ntitle: 更新日志\nicon: update\n---\n\n" + - log.replace("# Changelog", ""); + `\ +--- +title: 更新日志 +icon: clock +order: 8 +redirectFrom: /ref/changelog.html +--- +` + log.replace("# Changelog", ""); fs.writeFileSync("docs/changelog.md", newLog, { encoding: "utf-8" });