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"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/db": "^0.18.3",
|
||||
"@astrojs/mdx": "^4.3.0",
|
||||
"@astrojs/node": "^9.5.1",
|
||||
"@astrojs/rss": "^4.0.10",
|
||||
"@astrojs/sitemap": "^3.2.1",
|
||||
"@astrojs/db": "^0.20.1",
|
||||
"@astrojs/mdx": "^5.0.2",
|
||||
"@astrojs/node": "^10.0.3",
|
||||
"@astrojs/rss": "^4.0.17",
|
||||
"@astrojs/sitemap": "^3.7.1",
|
||||
"@types/nodemailer": "^7.0.4",
|
||||
"astro": "^5.1.1",
|
||||
"astro": "^6.0.8",
|
||||
"gemtext": "^0.2.2",
|
||||
"markdown-it": "^14.1.0",
|
||||
"nodemailer": "^7.0.11",
|
||||
"typescript": "^5.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@astrojs/check": "^0.9.4",
|
||||
"@astrojs/check": "^0.9.8",
|
||||
"@types/markdown-it": "^14.1.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
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()),
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user