From c52f807963fe8deb54874471140422caffa2de7f Mon Sep 17 00:00:00 2001
From: voidptr <1711810+taraxvoid@users.noreply.github.com>
Date: Fri, 7 Aug 2026 13:09:49 -0500
Subject: [PATCH] update jsonLD def for my gender stuff and add check for the
issue that broke it
---
package.json | 1 +
src/components/HeadMeta.astro | 12 ++--
test/structured-data.test.ts | 100 ++++++++++++++++++++++++++++++++++
3 files changed, 107 insertions(+), 6 deletions(-)
create mode 100644 test/structured-data.test.ts
diff --git a/package.json b/package.json
index 409d5e5..3004e42 100644
--- a/package.json
+++ b/package.json
@@ -10,6 +10,7 @@
"test:data": "vitest run test/data.test.ts",
"test:ical": "vitest run test/ical.test.ts",
"test:build": "bun run build && vitest run test/build.test.ts",
+ "test:structured-data": "bun run build && vitest run test/structured-data.test.ts",
"test:e2e": "bun run build && playwright test --project=mobile-chrome",
"test:e2e:only": "playwright test --project=mobile-chrome",
"test:e2e:desktop": "bun run build && playwright test --project=desktop-chrome",
diff --git a/src/components/HeadMeta.astro b/src/components/HeadMeta.astro
index 2bee659..ec6f46e 100644
--- a/src/components/HeadMeta.astro
+++ b/src/components/HeadMeta.astro
@@ -51,12 +51,12 @@ const { title, description, canonicalUrl, refresh } = Astro.props
url: Astro.site?.href ?? canonicalUrl,
description: "Community-maintained directory of queer groups, spaces, and resources in Omaha, Nebraska.",
"administrator": {
- "@type": "Person",
- "name": "Tara X Void",
- "gender": "https://en.pronouns.page/are/xe&she",
- "description": "Initial Creator of queeromaha.net",
- "sameAs": "https://github.com/taraxvoid"
- }
+ "@type": "Person",
+ "name": "Tara X Void",
+ "gender": "https://en.pronouns.page/are/xe%26she",
+ "description": "Initial Creator of queeromaha.net",
+ "sameAs": "https://github.com/taraxvoid"
+ }
})}>
including inline Astro output.
+const LDJSON_RE =
+ /