diff --git a/blog-site/src/content.config.ts b/blog-site/src/content.config.ts index 51da360c7..4a579d6b2 100644 --- a/blog-site/src/content.config.ts +++ b/blog-site/src/content.config.ts @@ -10,6 +10,10 @@ const blog = defineCollection({ keywords: z.string(), audience: z.string(), pubDate: z.coerce.date(), + modifiedDate: z.coerce.date().optional(), + author: z.string().optional(), + authorUrl: z.string().url().optional(), + authorBio: z.string().optional(), heroImage: z.string().optional(), }), }); diff --git a/blog-site/src/layouts/Base.astro b/blog-site/src/layouts/Base.astro index d1cca347b..348333c9c 100644 --- a/blog-site/src/layouts/Base.astro +++ b/blog-site/src/layouts/Base.astro @@ -12,9 +12,10 @@ interface Props { section?: string; jsonLd?: Record; breadcrumbLd?: Record; + faqLd?: Record; } -const { title, description, metaTitle, keywords, ogType, ogImage, publishedTime, modifiedTime, author, section, jsonLd, breadcrumbLd } = Astro.props; +const { title, description, metaTitle, keywords, ogType, ogImage, publishedTime, modifiedTime, author, section, jsonLd, breadcrumbLd, faqLd } = Astro.props; const pageTitle = metaTitle || title; const resolvedOgImage = ogImage || 'https://www.worldmonitor.app/favico/og-image.png'; const resolvedOgType = ogType || 'website'; @@ -68,6 +69,9 @@ const keywordTags = keywords ? keywords.split(',').map(k => k.trim()).slice(0, 6 {breadcrumbLd && (