From ba97814c14126fff48428699db4e678349d0c07c Mon Sep 17 00:00:00 2001 From: Tobias Dalhof Date: Fri, 30 Dec 2022 14:43:56 +0100 Subject: [PATCH] docs: add example for `:title` in `titleTemplate` (#1676) --- docs/config/app-configs.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/config/app-configs.md b/docs/config/app-configs.md index 14b99d4d..c4cb66aa 100644 --- a/docs/config/app-configs.md +++ b/docs/config/app-configs.md @@ -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) - Type: `'disabled' | 'without-subfolders' | 'with-subfolders'`