Skip to content

Commit 845fdce

Browse files
committed
fix: loading dynamic titles on new nextra version
1 parent 775ea58 commit 845fdce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

theme.config.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import Script from "next/script";
77
const config: DocsThemeConfig = {
88
head: () => {
99
const { asPath } = useRouter();
10-
const { frontMatter } = useConfig();
10+
const { frontMatter, title } = useConfig();
1111
const defaultDescription = "Documentation for VZN Scripts assets";
1212
const url = `https://docs.vzn-scripts.com/${asPath}`;
1313

1414
const googleId = "G-XV58K6R2PX"
1515

16-
const fullTitle = "VZN Scripts Docs"
16+
const fullTitle = `${title} | VZN Scripts Docs`
1717

1818

1919
return (

0 commit comments

Comments
 (0)