Skip to content

Commit

Permalink
feat: hide edit link by page (close: #284) (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
achendrick authored and ulivz committed Apr 28, 2018
1 parent 4bf56d7 commit d46819c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/default-theme-config/README.md
Expand Up @@ -321,6 +321,14 @@ module.exports = {
}
```

You can also hide the edit link on a specific page via `YAML front matter`:

``` yaml
---
editLink: false
---
```

## Simple CSS Override

If you wish to apply simple overrides to the styling of the default theme, you can create an `.vuepress/override.styl` file. This is a [Stylus](http://stylus-lang.com/) file but you can use normal CSS syntax as well.
Expand Down
3 changes: 3 additions & 0 deletions lib/default-theme/Page.vue
Expand Up @@ -52,6 +52,9 @@ export default {
}
},
editLink () {
if (this.$page.frontmatter.editLink === false) {
return
}
const {
repo,
editLinks,
Expand Down

0 comments on commit d46819c

Please sign in to comment.