summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--website/astro.config.mjs3
-rw-r--r--website/package-lock.json14
-rw-r--r--website/package.json1
-rw-r--r--website/src/content.config.ts2
4 files changed, 17 insertions, 3 deletions
diff --git a/website/astro.config.mjs b/website/astro.config.mjs
index 539c6ca..dc879a6 100644
--- a/website/astro.config.mjs
+++ b/website/astro.config.mjs
@@ -1,5 +1,6 @@
import { defineConfig, envField, passthroughImageService } from "astro/config";
import db from "@astrojs/db";
+import gemtext from "astro-gemtext";
import mdx from "@astrojs/mdx";
import node from "@astrojs/node";
@@ -34,5 +35,5 @@ export default defineConfig({
service: passthroughImageService(),
},
site: "https://joeac.net",
- integrations: [db(), mdx(), sitemap()],
+ integrations: [db(), gemtext(), mdx(), sitemap()],
});
diff --git a/website/package-lock.json b/website/package-lock.json
index a337f55..843d74a 100644
--- a/website/package-lock.json
+++ b/website/package-lock.json
@@ -12,6 +12,7 @@
"@astrojs/sitemap": "^3.7.1",
"@types/nodemailer": "^7.0.4",
"astro": "^6.0.8",
+ "astro-gemtext": "git+https://git.joeac.net/joeac/astro-gemtext.git",
"gemtext": "^0.2.2",
"markdown-it": "^14.1.0",
"nodemailer": "^7.0.11",
@@ -3673,6 +3674,18 @@
"sharp": "^0.34.0"
}
},
+ "node_modules/astro-gemtext": {
+ "version": "0.3.3",
+ "resolved": "git+https://git.joeac.net/joeac/astro-gemtext.git#1248542cc6b509a1b070ed5812ca5c327823a018",
+ "license": "MIT",
+ "dependencies": {
+ "gemtext": "^0.2.2",
+ "yaml": "^2.8.3"
+ },
+ "peerDependencies": {
+ "astro": ">= 3.0.0"
+ }
+ },
"node_modules/astro/node_modules/@astrojs/compiler": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/@astrojs/compiler/-/compiler-3.0.1.tgz",
@@ -8561,7 +8574,6 @@
"version": "2.8.3",
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.3.tgz",
"integrity": "sha512-AvbaCLOO2Otw/lW5bmh9d/WEdcDFdQp2Z2ZUH3pX9U2ihyUY0nvLv7J6TrWowklRGPYbB/IuIMfYgxaCPg5Bpg==",
- "devOptional": true,
"license": "ISC",
"bin": {
"yaml": "bin.mjs"
diff --git a/website/package.json b/website/package.json
index 7e66752..7922b5d 100644
--- a/website/package.json
+++ b/website/package.json
@@ -18,6 +18,7 @@
"@astrojs/sitemap": "^3.7.1",
"@types/nodemailer": "^7.0.4",
"astro": "^6.0.8",
+ "astro-gemtext": "git+https://git.joeac.net/joeac/astro-gemtext.git",
"gemtext": "^0.2.2",
"markdown-it": "^14.1.0",
"nodemailer": "^7.0.11",
diff --git a/website/src/content.config.ts b/website/src/content.config.ts
index 7495052..1a2452d 100644
--- a/website/src/content.config.ts
+++ b/website/src/content.config.ts
@@ -4,7 +4,7 @@ import { z } from "astro/zod";
const blog = defineCollection({
loader: glob({
- pattern: "**/*.(md|mdx|html)",
+ pattern: "**/*.(md|mdx|gmi|html)",
base: "./src/content/blog",
}),
schema: z.object({