Compare commits
4 Commits
1a31d01764
...
main
Author | SHA1 | Date | |
---|---|---|---|
8ad62ee076 | |||
![]() |
4eab0f6870 | ||
![]() |
7410695051 | ||
![]() |
3f96722a53 |
11
README.md
11
README.md
@@ -5,6 +5,15 @@
|
|||||||
```shell
|
```shell
|
||||||
http://git.ppst.top/pp/custom-vitepress-theme-demo
|
http://git.ppst.top/pp/custom-vitepress-theme-demo
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 案例
|
||||||
|
|
||||||
|
[技术随笔](https://blog.web.ppst.top/)
|
||||||
|
|
||||||
|
[css手册](https://css.web.ppst.top/)
|
||||||
|
|
||||||
|
[js手册](https://js.web.ppst.top/)
|
||||||
|
|
||||||
## 展示
|
## 展示
|
||||||

|

|
||||||

|

|
||||||
@@ -124,7 +133,7 @@ export default {
|
|||||||
默认有
|
默认有
|
||||||
- category.md【分类页面】
|
- category.md【分类页面】
|
||||||
- default.md 【默认页面】
|
- default.md 【默认页面】
|
||||||
- default.md 【搜索页面】
|
- search.md 【搜索页面】
|
||||||
- archives.md 【归档页面】
|
- archives.md 【归档页面】
|
||||||
|
|
||||||
如果需要自定义布局请定义组件并在.vitepress/theme/index.ts引用
|
如果需要自定义布局请定义组件并在.vitepress/theme/index.ts引用
|
||||||
|
@@ -14,6 +14,6 @@
|
|||||||
"@types/node": "^18.15.11",
|
"@types/node": "^18.15.11",
|
||||||
"markdown-from-posts": "^1.0.5",
|
"markdown-from-posts": "^1.0.5",
|
||||||
"vitepress": "1.0.0-alpha.64",
|
"vitepress": "1.0.0-alpha.64",
|
||||||
"custom-vitepress-theme": "^0.0.2"
|
"custom-vitepress-theme": "^0.0.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
1058
demo/pnpm-lock.yaml
generated
1058
demo/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "custom-vitepress-theme",
|
"name": "custom-vitepress-theme",
|
||||||
"version": "0.0.2",
|
"version": "0.0.3",
|
||||||
"description": "自定义vitepress主题",
|
"description": "自定义vitepress主题",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
@@ -11,7 +11,7 @@ export function getTags(post: Post[]) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// data = [...new Set(data)];
|
data = [...new Set(data)];
|
||||||
return data.sort()
|
return data.sort()
|
||||||
}
|
}
|
||||||
export function initTags(post: Post[]) {
|
export function initTags(post: Post[]) {
|
||||||
|
Reference in New Issue
Block a user