mirror of
https://github.com/ZiuChen/ZiuChen.github.io.git
synced 2025-08-18 07:29:33 +08:00
Merge branch 'main' of github.com:ZiuChen/ZiuChen.github.io
This commit is contained in:
commit
84b5d9861e
@ -4,11 +4,8 @@ import path from 'path'
|
|||||||
export default function generateSideBar() {
|
export default function generateSideBar() {
|
||||||
const articles = fs.readdirSync(path.resolve(__dirname, '../../article'))
|
const articles = fs.readdirSync(path.resolve(__dirname, '../../article'))
|
||||||
|
|
||||||
// 排除掉资源文件夹
|
|
||||||
const folders = ['assets']
|
|
||||||
|
|
||||||
const sidebar = articles
|
const sidebar = articles
|
||||||
.filter((article) => !folders.includes(article))
|
.filter((article) => article.endsWith('.md'))
|
||||||
.map((article) => {
|
.map((article) => {
|
||||||
// 移除后缀 `.md`
|
// 移除后缀 `.md`
|
||||||
const title = article.replace(/\.md$/, '')
|
const title = article.replace(/\.md$/, '')
|
||||||
|
@ -6,6 +6,16 @@ aside: false
|
|||||||
|
|
||||||
# 更新日志
|
# 更新日志
|
||||||
|
|
||||||
|
## v2.2.2
|
||||||
|
|
||||||
|
`2023-09-25`
|
||||||
|
|
||||||
|
- feat: 新增快捷键 Ctrl+上下左右 快速切换分类与跳转首个/最末条目
|
||||||
|
- feat: 分类支持左右快速跳转首个/最末分类
|
||||||
|
- feat: 支持设置不记录文件内容
|
||||||
|
- fix: 修正底部提示展示规则
|
||||||
|
- fix: 执行完自定义操作按钮后自动退出预览抽屉
|
||||||
|
|
||||||
## v2.2.1
|
## v2.2.1
|
||||||
|
|
||||||
`2023-06-26`
|
`2023-06-26`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user