Renovamen / vuepress-theme-gungnir

A blog theme for VuePress 2.
https://v2-vuepress-theme-gungnir.vercel.app
Apache License 2.0
358 stars 80 forks source link

[Feature Request] How to remove Edit this Page? #75

Closed khakimsetia closed 2 years ago

khakimsetia commented 2 years ago

💭 Describe the feature

How to configure disable Edit this Page on Github?

Can you add some feature change Other links? like Gitlab.

Thank you. your theme is so awesome

💡 Proposed Solution

No response

Renovamen commented 2 years ago

To disable edit this page link:

export default defineUserConfig({
  theme: gungnirTheme({
    editLink: false
  })
})

To change to Gitlab:

export default defineUserConfig({
  theme: gungnirTheme({
    repo: "https://gitlab.com/foo/bar",
    editLinkText: "Edit this page on Gitlab"
  })
})

The usage is the same as the default theme, so please refer to default theme's docs for details.