chore: tags can be empty, set default value to avoid compilation failure
This commit is contained in:
parent
2338fd1819
commit
6990bb210a
@ -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' },
|
||||
|
Loading…
x
Reference in New Issue
Block a user