From a09f874bba31567c0c758e67e6e6d6c2cbb06e7a Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Sat, 21 Mar 2026 22:23:45 +0000 Subject: [PATCH] enable .gmi content type --- website/astro.config.mjs | 3 ++- website/package-lock.json | 14 +++++++++++++- website/package.json | 1 + website/src/content.config.ts | 2 +- 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({