title | metaTitle |
---|---|
clean-urls |
A plugin of automatically generating clean urls | VuePress |
A plugin of automatically generating clean urls
yarn add -D @vuepress/plugin-clean-urls
# OR npm install -D @vuepress/plugin-clean-urls
module.exports = {
plugins: ['@vuepress/clean-urls']
}
- Type:
string
- Default:
''
The suffix for normal pages. For example, foo/bar.md
will become:
foo/bar.html
by default (without this plugin)foo/bar/
(withnormalSuffix
set to'/'
)foo/bar
(withnormalSuffix
set to''
)
- Type:
string
- Default:
'/'
The suffix for index pages. For example, foo/index.md
will become:
foo/
by default (without this plugin)foo
(withindexSuffix
set to''
)foo/index.html
(withindexSuffix
set to'/index.html'
)
::: tip An index page is a page with a file name of index.md or readme.md (case insensitive). :::