Add per-page search metadata, link previews and a sitemap

Page requests now go through the API (routes/pages.js), which fills
the built index.html in for that path before the app loads: title,
description, preview image, canonical URL, and structured data
(Organization, Event, BlogPosting). Shared links preview the page
itself. Unlisted records are noindex; missing ones return 404.
/sitemap.xml lists every public, listed page.

site.json is the one place for the site's name, address, default
description and preview image, and each static page's title and
intro, which the pages now read too. Indexing is switched on:
robots.txt allows all but /admin and /api and names the sitemap. The
browser tab title follows the page.

nginx setup, with a fallback to the plain page if the API is down,
is in docs/seo.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-27 21:21:10 -05:00
parent 71a470b66f
commit 64cb2ec56a
21 changed files with 777 additions and 29 deletions

View file

@ -1,11 +1,57 @@
{
"title": "Next Generation of Unity",
"url": "https://nextgenerationofunity.org",
"description": "",
"robots": {
"index": false
"index": true
},
"openGraph": {
"image": ""
},
"accessibility": {
"addBypassLinks": false,
"ignoreReducedMotion": false
},
"pages": {
"/retreats": {
"title": "Retreats",
"description": "Retreats hosted by Next Generation of Unity, our regions, and our partners throughout the year."
},
"/community": {
"title": "Community",
"description": "Chapters, regions and the people who make up Next Generation of Unity."
},
"/leadership": {
"title": "Leadership",
"description": "The board, staff, and volunteers who keep Next Generation of Unity running."
},
"/resources": {
"title": "Resources",
"description": "Teachings, brand assets, and material for chapters and partners."
},
"/history": {
"title": "History",
"description": "A near-complete timeline of Next Generation of Unity (NGU), and other Unity Young Adult programs."
},
"/feedback": {
"title": "Feedback",
"description": "Tell us what's working, what isn't, and what you'd like to see next."
},
"/qr": {
"title": "QR Codes",
"description": "Codes for flyers, slides and signs, pointing at any page on the site."
},
"/give": {
"title": "Giving",
"description": "Support the work of Next Generation of Unity."
},
"/privacy": {
"title": "Privacy Policy",
"description": "How Next Generation of Unity collects, uses, and protects your information."
},
"/terms": {
"title": "Terms of Service",
"description": "The terms that apply when you use this site and our programs."
}
}
}