docs: add example for `:title` in `titleTemplate` (#1676)

pull/1747/head
Tobias Dalhof 3 years ago committed by GitHub
parent 7de7fff417
commit ba97814c14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -258,6 +258,14 @@ export default {
} }
``` ```
To configure a title separator other than `|`, you can omit `title` and use the `:title` symbol in `titleTemplate`.
```ts
export default {
titleTemplate: ':title - Vitepress'
}
```
## cleanUrls (Experimental) ## cleanUrls (Experimental)
- Type: `'disabled' | 'without-subfolders' | 'with-subfolders'` - Type: `'disabled' | 'without-subfolders' | 'with-subfolders'`

Loading…
Cancel
Save