chore: tags can be empty, set default value to avoid compilation failure

This commit is contained in:
ttyS3 2023-07-23 23:29:48 +08:00
parent 2338fd1819
commit 6990bb210a
No known key found for this signature in database
GPG Key ID: A83C6C687C9E7888

View File

@ -81,7 +81,7 @@ export const Blog = defineDocumentType(() => ({
fields: {
title: { type: 'string', required: true },
date: { type: 'date', required: true },
tags: { type: 'list', of: { type: 'string' } },
tags: { type: 'list', of: { type: 'string' }, default: [] },
lastmod: { type: 'date' },
draft: { type: 'boolean' },
summary: { type: 'string' },