Skip to content

Commit ae36330

Browse files
committed
fix: remove redundant authors ld+json field
1 parent 0ae7921 commit ae36330

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

contentlayer.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const Blog = defineDocumentType(() => ({
8787
draft: { type: 'boolean' },
8888
summary: { type: 'string' },
8989
images: { type: 'json' },
90-
authors: { type: 'json' },
90+
authors: { type: 'list', of: { type: 'string' } },
9191
layout: { type: 'string' },
9292
bibliography: { type: 'string' },
9393
canonicalUrl: { type: 'string' },
@@ -105,7 +105,6 @@ export const Blog = defineDocumentType(() => ({
105105
description: doc.summary,
106106
image: doc.images ? doc.images[0] : siteMetadata.socialBanner,
107107
url: `${siteMetadata.siteUrl}/${doc._raw.flattenedPath}`,
108-
author: doc.authors,
109108
}),
110109
},
111110
},

0 commit comments

Comments
 (0)