Skip to content

Commit 55f780c

Browse files
committed
docs: fix nprogress title issue
1 parent c8897b4 commit 55f780c

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

docs/reference/plugin/nprogress.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
# nprogress
1+
---
2+
title: nprogress
3+
---
4+
5+
<!-- `# nprogress` will be rendered as `<h1 id="nprogress">`, and the id will conflict with the nprogress bar (stupid) -->
6+
7+
<!-- so we add a 'plugin' suffix in the h1 title, and use title frontmatter to set the page title -->
8+
9+
# nprogress Plugin
210

311
> @vuepress/plugin-nprogress
412

docs/zh/reference/plugin/nprogress.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
# nprogress
1+
---
2+
title: nprogress
3+
---
4+
5+
<!-- `# nprogress` 会被渲染成 `<h1 id="nprogress">` ,导致 id 和 nprogress 进度条冲突 (有点蠢) -->
6+
7+
<!-- 所以我们在 h1 标题后添加一个 '插件' 后缀,然后通过 title frontmatter 来设置页面标题 -->
8+
9+
# nprogress 插件
210

311
> @vuepress/plugin-nprogress
412

0 commit comments

Comments
 (0)