diff --git a/theme.config.tsx b/theme.config.tsx index 872fe638f..f97d23724 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -33,15 +33,17 @@ const config: DocsThemeConfig = { ], head: function UseHead() { const { title } = useConfig() + const pageTitle = title ? `${title} | Prompt Engineering Guide` : 'Prompt Engineering Guide'; + return ( <> - {title ? title + ' | Prompt Engineering Guide': 'Prompt Engineering Guide'} + {pageTitle}