upgrade to Astro 6

This commit is contained in:
2026-03-21 22:22:42 +00:00
parent 6f96a69440
commit 9332601f5b
4 changed files with 791 additions and 1250 deletions
+13 -9
View File
@@ -1,15 +1,19 @@
import { glob } from 'astro/loaders';
import { defineCollection, z } from 'astro:content';
import { glob } from "astro/loaders";
import { defineCollection } from "astro:content";
import { z } from "astro/zod";
const blog = defineCollection({
loader: glob({ pattern: '**/*.(md|mdx|html)', base: './src/content/blog' }),
loader: glob({
pattern: "**/*.(md|mdx|html)",
base: "./src/content/blog",
}),
schema: z.object({
title: z.string(),
hidden: z.optional(z.boolean()),
description: z.string(),
pubDate: z.date(),
updatedDate: z.optional(z.date()),
}),
title: z.string(),
hidden: z.optional(z.boolean()),
description: z.string(),
pubDate: z.date(),
updatedDate: z.optional(z.date()),
}),
});
export const collections = { blog };
+1
View File
@@ -1,6 +1,7 @@
---
import OtpDialog from "../components/OtpDialog.astro";
import Page from "../layouts/Page.astro";
export const prerender = false;
---
<Page title="Contact" description="Contact Joe Carstairs">