Skip to content

自定义Toc.vue的标题#85

Open
0xlau wants to merge 2 commits intoulivz:masterfrom
0xlau:patch-1
Open

自定义Toc.vue的标题#85
0xlau wants to merge 2 commits intoulivz:masterfrom
0xlau:patch-1

Conversation

@0xlau
Copy link
Copy Markdown

@0xlau 0xlau commented Dec 14, 2022

允许自定义Toc.vue的标题

允许自定义Toc.vue的标题
@ulivz
Copy link
Copy Markdown
Owner

ulivz commented Feb 3, 2023

Thanks for your contribution, could you help write a documentation for this feature?

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
vuepress-docs ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 29, 2023 at 4:37AM (UTC)

@0xlau
Copy link
Copy Markdown
Author

0xlau commented Mar 29, 2023

image

Here are two ways to modify the toc title:

  1. Declare with Frontmatter:
---
tocTitle: ON THIS PAGE
---
  1. Via the themeConfig property
// .vuepress/config.js
module.exports = {
  theme: "vt",
  themeConfig: {
    tocTitle: "ON THIS PAGE"
  },
};

@0xlau
Copy link
Copy Markdown
Author

0xlau commented Dec 15, 2024

Hi @ulivz , I was wondering if there's any update on the pull request? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants