Compare commits

..

3 Commits

Author SHA1 Message Date
ppst
4eab0f6870 feat: 发布版本0.03 2023-06-16 16:41:27 +08:00
ppst
7410695051 fix: 添加案例 2023-06-16 16:37:03 +08:00
ppst
3f96722a53 fix: tag标签重复 2023-06-16 16:35:38 +08:00
5 changed files with 12 additions and 1061 deletions

View File

@@ -5,6 +5,15 @@
```shell
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/)
## 展示
![首页](http://img.ppst.top/custom-vitepress-theme/custom-vitepress-theme/1.png)
![归档](http://img.ppst.top/custom-vitepress-theme/custom-vitepress-theme/2.png)

View File

@@ -14,6 +14,6 @@
"@types/node": "^18.15.11",
"markdown-from-posts": "^1.0.5",
"vitepress": "1.0.0-alpha.64",
"custom-vitepress-theme": "^0.0.2"
"custom-vitepress-theme": "^0.0.3"
}
}

1058
demo/pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "custom-vitepress-theme",
"version": "0.0.2",
"version": "0.0.3",
"description": "自定义vitepress主题",
"main": "src/index.ts",
"exports": {

View File

@@ -11,7 +11,7 @@ export function getTags(post: Post[]) {
})
}
}
// data = [...new Set(data)];
data = [...new Set(data)];
return data.sort()
}
export function initTags(post: Post[]) {