From 6b680ef42206836312734ee05d91198a932cc143 Mon Sep 17 00:00:00 2001 From: Evorp <3vorpgaming@gmail.com> Date: Sun, 19 May 2024 22:25:43 -0700 Subject: [PATCH] better embed support (shows titles) --- .vitepress/config.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.vitepress/config.ts b/.vitepress/config.ts index bbfb427..6d42cdc 100644 --- a/.vitepress/config.ts +++ b/.vitepress/config.ts @@ -62,7 +62,16 @@ export default () => { return defineConfig({ title: "Faithful Docs", description: "The official site with documentation and guides related to Faithful.", - head: metaTags, + transformHead: ({ pageData }) => [ + ...metaTags, + [ + "meta", + { + property: "og:title", + content: `${pageData.frontmatter.title} | Faithful Docs`, + }, + ], + ], // https://vitepress.dev/reference/default-theme-config themeConfig: { logo: "https://raw.githubusercontent.com/Faithful-Resource-Pack/Branding/main/site/favicon.ico",