From ba807f83180518bc62dd4778220c15b15806eaf6 Mon Sep 17 00:00:00 2001 From: Pivithuru Jayakody Date: Sun, 12 Nov 2023 12:39:07 +0530 Subject: [PATCH] Add frontmatter --- pages/tongue-twisters.mdx | 5 +++++ theme.config.tsx | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pages/tongue-twisters.mdx b/pages/tongue-twisters.mdx index 60fce65..4c90b69 100644 --- a/pages/tongue-twisters.mdx +++ b/pages/tongue-twisters.mdx @@ -1,3 +1,8 @@ +--- +title: "Tongue Twisters" +description: "Tongue twisters are fun phrases that can help you get better at saying tricky words. They're like puzzles for your mouth!" +--- + # Tongue Twisters Tongue twisters are fun phrases that can help you get better at saying tricky words. They're like puzzles for your mouth! Using tongue twisters can make you more skilled at saying words clearly. By practicing these challenging phrases, you can improve how you talk and sound more confident. It's a playful way to work on your pronunciation and have some fun with language. So, try out some tongue twisters and enjoy the playful side of improving how you speak! diff --git a/theme.config.tsx b/theme.config.tsx index 8fba6a9..fd7c6bd 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -109,7 +109,7 @@ const config: DocsThemeConfig = { }, head: () => { const { asPath, defaultLocale, locale } = useRouter(); - const { frontMatter } = useConfig(); + const { frontMatter, title } = useConfig(); const url = 'https://engreesi.engspire.lk' + (defaultLocale === locale ? asPath : `/${locale}${asPath}`); @@ -117,7 +117,7 @@ const config: DocsThemeConfig = { return ( <> - +