fix: remove redundant authors ld+json field

This commit is contained in:
Timothy Lin 2023-09-26 10:17:04 +08:00
parent 0ae7921c7b
commit ae36330d46

View File

@ -87,7 +87,7 @@ export const Blog = defineDocumentType(() => ({
draft: { type: 'boolean' },
summary: { type: 'string' },
images: { type: 'json' },
authors: { type: 'json' },
authors: { type: 'list', of: { type: 'string' } },
layout: { type: 'string' },
bibliography: { type: 'string' },
canonicalUrl: { type: 'string' },
@ -105,7 +105,6 @@ export const Blog = defineDocumentType(() => ({
description: doc.summary,
image: doc.images ? doc.images[0] : siteMetadata.socialBanner,
url: `${siteMetadata.siteUrl}/${doc._raw.flattenedPath}`,
author: doc.authors,
}),
},
},