You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
a329fd9116 | 2 years ago | |
---|---|---|
demo | 2 years ago | |
src | 2 years ago | |
test | 2 years ago | |
.editorconfig | 2 years ago | |
.gitignore | 2 years ago | |
.prettierrc | 2 years ago | |
README.md | 2 years ago | |
package.json | 2 years ago | |
pnpm-lock.yaml | 2 years ago | |
tsconfig.json | 2 years ago |
README.md
vitepress 自定义主题
安装主题
pnpm install ppst-vitepress-theme
demo项目
直接运行demo目录
demo目录结构
.vitepress文件夹
config.ts - 配置自定义vitepress导航以及标题等
theme/override.css 重置样式
pages文件夹
配置二级目录页面(可自定义布局页面),默认有 CategoryPage DefaultPage,如果需要自定义布局请在.vitepress/theme/index.ts定义
posts 文件夹
所有文档
文档内容:
---
title: default
date: 2018-09-14 13:57:02
category: default
tags:
- default
---
title 为文档标题 date 创建时间 category 分类 tags 标签
public文件夹
favicon.ico 网站图标 img文件 公共图片文件夹
index.html 文件
首页配置