Separate pages plugin for VuePress 1.x
This is a VuePress plugin which shows content of current header by hashtag from location
There is exactly one basic rule to follow:
- Header tags like h1, h2, h3, h4 (#, ##, ###, ####) should not be inside html elements, for example
<div class="notranslate"><h2>Some header</h2></div>
will not work
$ npm install vuepress-plugin-separate-pages
# or
$ yarn add vuepress-plugin-separate-pages
Add separate-pages
in your site config file.
// .vuepress/config.js
module.exports = {
plugins: [
[ 'separate-pages' ]
]
}
See Plugin Option API official docs
alwaysVisibleBlocks
- list of blocks described by css rules. These blocks will always be visible.
// .vuepress/config.js
module.exports = {
plugins: [
[ 'separate-pages', { alwaysVisibleBlocks: ['#disqus_thread'] } ]
]
}
- VuePress official plugin docs
MIT ©