框架无关
Velite 是一个框架无关的库,可以在任何 JavaScript 框架或库中使用。
在线试用
源代码
👉 https://stackblitz.com/github/zce/velite/tree/main/examples/nextjs
查看更多示例请访问 examples。
项目结构
text
basic
├── content # 内容目录
│ ├── categories
│ │ ├── journal.jpg
│ │ ├── journal.yml
│ │ └── 等等...
│ ├── options
│ │ └── index.yml
│ ├── pages
│ │ ├── about
│ │ │ └── index.mdx
│ │ └── contact
| | ├── img.png 及其它...
│ │ └── index.mdx
│ ├── posts
│ │ ├── 1970-01-01-style-guide
│ │ │ ├── cover.jpg 及其它...
│ │ │ └── index.md
│ │ └── 1992-02-25-hello-world
│ │ ├── cover.jpg 及其它...
│ │ └── index.md
│ └── tags
│ └── index.yml
├── .gitignore
├── package.json
├── README.md
└── velite.config.js # Velite 配置文件使用方式
shell
$ npm install # 安装依赖
$ npm run dev # 监听模式运行构建
$ npm run build # 通过 velite 构建内容有关 Velite 的更多详细信息,请参阅快速开始。