summaryrefslogtreecommitdiff
path: root/examples/blog
diff options
context:
space:
mode:
authorGravatar __dil__ <68077556+LouisGariepy@users.noreply.github.com> 2023-12-08 03:22:08 -0500
committerGravatar GitHub <noreply@github.com> 2023-12-08 09:22:08 +0100
commit1a4d593ddb067d8082e9203d81980b5f0e6ba7ee (patch)
treef8b014a4a774149356feee7ff401295b28c81dc5 /examples/blog
parenta7a46b1a5d86ce7e0cf305065ce419792f80f43d (diff)
downloadastro-1a4d593ddb067d8082e9203d81980b5f0e6ba7ee.tar.gz
astro-1a4d593ddb067d8082e9203d81980b5f0e6ba7ee.tar.zst
astro-1a4d593ddb067d8082e9203d81980b5f0e6ba7ee.zip
feat(examples): make content collections type explicit
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com> Co-authored-by: Bjorn Lu <34116392+bluwy@users.noreply.github.com> Co-authored-by: Florian Lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
Diffstat (limited to 'examples/blog')
-rw-r--r--examples/blog/src/content/config.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/blog/src/content/config.ts b/examples/blog/src/content/config.ts
index f0419223e..667a31cc7 100644
--- a/examples/blog/src/content/config.ts
+++ b/examples/blog/src/content/config.ts
@@ -1,6 +1,7 @@
import { defineCollection, z } from 'astro:content';
const blog = defineCollection({
+ type: 'content',
// Type-check frontmatter using a schema
schema: z.object({
title: z.string(),