vitepress-theme-vitenote
v1.2.4
Published
simple vitepress theme
Downloads
21
Readme
Scaffolding Your Vitepress Project | 搭建 Vitepress 项目的脚手架
Using the Custom Theme | 使用此主题
With NPM:
npm i vitepress-theme-vitenote
With Yarn:
yarn add vitepress-theme-vitenote
import and re-export it from the custom theme entry: | 导入自定义主题,并重新导出它
// .vitepress/theme/index.js
import Theme from 'vitepress-theme-vitenote'
export default Theme
customize your site | 配置自定义主题
// .vitepress/config.js
import { defineConfig } from 'vitepress'
export default defineConfig({
base: '/',
<!-- lang: 'zh-CN', -->
title: 'Is My Note',
description: 'Just playing around.',
themeConfig: {
author: 'Chaos',
copyright: true,
navbar: [
{
name: '首页',
link: '/',
},
{
name: '标签',
link: '/tags/',
},
{
name: '分类',
link: '/categories/',
},
],
},
vite: {
build: {
minify: 'terser',
},
},
})