diff --git a/website/src/.vitepress/config/hooks/generateOgImages.ts b/website/src/.vitepress/config/hooks/generateOgImages.ts index c8a0e4fd..c433d1f2 100644 --- a/website/src/.vitepress/config/hooks/generateOgImages.ts +++ b/website/src/.vitepress/config/hooks/generateOgImages.ts @@ -75,6 +75,11 @@ async function generateImage({ page, template, outDir, fonts }: GenerateImagesOp description: frontmatter.layout === "home" ? (frontmatter.hero.tagline ?? frontmatter.description) : frontmatter.description, + dir: (url.startsWith("/docs/faq/")) + ? "FAQ" + : (url.startsWith("/docs/guides/")) + ? "Guides" + : undefined, } } diff --git a/website/src/.vitepress/theme/components/OgImageTemplate.vue b/website/src/.vitepress/theme/components/OgImageTemplate.vue index ae23e7dc..242eabde 100644 --- a/website/src/.vitepress/theme/components/OgImageTemplate.vue +++ b/website/src/.vitepress/theme/components/OgImageTemplate.vue @@ -1,17 +1,20 @@