From 0fcd77c22df42a5dc01b35cec15b222a0b4b513f Mon Sep 17 00:00:00 2001 From: milooy Date: Tue, 14 Jan 2025 15:10:04 +0900 Subject: [PATCH] feat: update default og title, description --- .vitepress/shared.mts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.vitepress/shared.mts b/.vitepress/shared.mts index 7f5aadff..5385ec9e 100644 --- a/.vitepress/shared.mts +++ b/.vitepress/shared.mts @@ -30,8 +30,8 @@ export const shared = defineConfig({ transformHead: ({ pageData }) => { const head: HeadConfig[] = []; - const title = pageData.frontmatter.title || 'Frontend Fundamentals'; - const description = pageData.frontmatter.description || 'Guidelines for easily modifiable frontend code'; + const title = pageData.frontmatter.title || pageData.title || 'Frontend Fundamentals'; + const description = pageData.frontmatter.description || pageData.description || 'Guidelines for easily modifiable frontend code'; head.push(['meta', { property: 'og:title', content: title }]); head.push(['meta', { property: 'og:description', content: description }]);