From aa5fcd1c0b6b4888e395d5b94dce723eeb183f65 Mon Sep 17 00:00:00 2001 From: Icegreeen Date: Fri, 2 Feb 2024 02:59:10 -0300 Subject: [PATCH 1/2] fix: Resolve warning in title element for dynamic page titles --- theme.config.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/theme.config.tsx b/theme.config.tsx index 872fe638f..b3020418e 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -33,9 +33,11 @@ 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} From 11e2ee52af428e37c349144043c49a33607dd357 Mon Sep 17 00:00:00 2001 From: Icegreeen Date: Fri, 2 Feb 2024 03:01:00 -0300 Subject: [PATCH 2/2] fix: meta-content --- theme.config.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme.config.tsx b/theme.config.tsx index b3020418e..f97d23724 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -43,7 +43,7 @@ const config: DocsThemeConfig = {