upgrade to Astro 6
This commit is contained in:
Generated
+769
-1234
File diff suppressed because it is too large
Load Diff
@@ -11,19 +11,20 @@
|
|||||||
"node": "^22.14.0"
|
"node": "^22.14.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/db": "^0.18.3",
|
"@astrojs/db": "^0.20.1",
|
||||||
"@astrojs/mdx": "^4.3.0",
|
"@astrojs/mdx": "^5.0.2",
|
||||||
"@astrojs/node": "^9.5.1",
|
"@astrojs/node": "^10.0.3",
|
||||||
"@astrojs/rss": "^4.0.10",
|
"@astrojs/rss": "^4.0.17",
|
||||||
"@astrojs/sitemap": "^3.2.1",
|
"@astrojs/sitemap": "^3.7.1",
|
||||||
"@types/nodemailer": "^7.0.4",
|
"@types/nodemailer": "^7.0.4",
|
||||||
"astro": "^5.1.1",
|
"astro": "^6.0.8",
|
||||||
|
"gemtext": "^0.2.2",
|
||||||
"markdown-it": "^14.1.0",
|
"markdown-it": "^14.1.0",
|
||||||
"nodemailer": "^7.0.11",
|
"nodemailer": "^7.0.11",
|
||||||
"typescript": "^5.4.3"
|
"typescript": "^5.4.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@astrojs/check": "^0.9.4",
|
"@astrojs/check": "^0.9.8",
|
||||||
"@types/markdown-it": "^14.1.1"
|
"@types/markdown-it": "^14.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
import { glob } from 'astro/loaders';
|
import { glob } from "astro/loaders";
|
||||||
import { defineCollection, z } from 'astro:content';
|
import { defineCollection } from "astro:content";
|
||||||
|
import { z } from "astro/zod";
|
||||||
|
|
||||||
const blog = defineCollection({
|
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({
|
schema: z.object({
|
||||||
title: z.string(),
|
title: z.string(),
|
||||||
hidden: z.optional(z.boolean()),
|
hidden: z.optional(z.boolean()),
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
import OtpDialog from "../components/OtpDialog.astro";
|
import OtpDialog from "../components/OtpDialog.astro";
|
||||||
import Page from "../layouts/Page.astro";
|
import Page from "../layouts/Page.astro";
|
||||||
|
export const prerender = false;
|
||||||
---
|
---
|
||||||
|
|
||||||
<Page title="Contact" description="Contact Joe Carstairs">
|
<Page title="Contact" description="Contact Joe Carstairs">
|
||||||
|
|||||||
Reference in New Issue
Block a user