vuepress Plume 主题 notes 使用方法

安装主题

复制代码
npm create vuepress-theme-plume@latest

运行

复制代码
npm run docs:dev

笔记链接在下面红框处

试着生成一个新的笔记

添加 notes/haha 目录,添加文件 biu.mdha.md

ha.md

复制代码
---
title: ha
---

[ha](./ha.md)

biu.md

复制代码
---
title: biu
---

[biu](./biu.md)

README.md

复制代码
---
title: haha
---

- [ha](./ha.md)
- [biu](./biu.md)

文件内不要加 permalink 和 createTime 因为这是自动生成的,如果加了自动生成会失败,可以删除后重新运行就会自动生成了。

navbar.ts 导航文件要添加链接不然不会有跳转到这个笔记的链接

复制代码
  {
    text: '笔记',
    items: [{ text: '示例', link: '/notes/demo/README.md' },
      { text: '示例haha', link: '/notes/haha/README.md' }
    ]
  },

notes.ts 添加一个 notes

复制代码
const hahaNote = defineNoteConfig({
  dir: 'haha',
  link: '/haha',
  sidebar: ['', 'biu', 'ha'],
})

export default defineNotesConfig({
  dir: 'notes',
  link: '/',
  notes: [demoNote, hahaNote],
})

运行

复制代码
npm run docs:dev

可以看到 biu.mdha.md 自动生成

复制代码
createTime: 2025/07/02 14:13:06
permalink: /haha/xqyh4cnn/
相关推荐
ayuday1 个月前
algolia使用配置教程-为SSG静态站增加algolia搜索功能
vitepress·vuepress·docusaurus·algolia
A-刘晨阳2 个月前
Algolia - Docsearch的申请配置安装【以踩坑解决版】
vue3·ts·vuepress·algolia·docsearch
&小胖&7 个月前
VuePress学习
学习·vuepress
RobinDevNotes7 个月前
用VuePress在GitHub Pages上搭建博客
vue·github pages·vuepress
水w8 个月前
VuePress v2 快速搭建属于自己的个人博客网站
开发语言·前端·vue·vuepress
寒山李白9 个月前
VuePress搭建文档网站/个人博客(详细配置)主题配置-侧边栏配置
前端·vue.js·vue·博客·vuepress·网站
星石传说1 年前
vuepress搭建个人文档
项目·vuepress·个人文档
xrl20121 年前
vuepress 配置文件分类管理
vuepress
PeterJXL1 年前
自建搜索引擎-基于美丽云
搜索引擎·博客·博客搭建·vuepress·美丽云