refactor: rename blog app to www
This commit is contained in:
parent
5ff2a3056e
commit
87c8260c80
40 changed files with 6 additions and 6 deletions
|
|
@ -1,15 +0,0 @@
|
|||
import { defineCollection } from 'astro:content';
|
||||
import { glob } from 'astro/loaders';
|
||||
import { z } from 'astro/zod';
|
||||
|
||||
const posts = defineCollection({
|
||||
loader: glob({ pattern: '**/*.md', base: './src/content/posts' }),
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
date: z.coerce.date(),
|
||||
pinned: z.boolean().optional(),
|
||||
category: z.string().optional(),
|
||||
})
|
||||
});
|
||||
|
||||
export const collections = { posts };
|
||||
Loading…
Add table
Add a link
Reference in a new issue