Add feeds, sitemap, search, tags, and per-post nav/TOC/series/related

- src/site.config.ts: minimal site metadata (title, description,
  base URL, nav, tag descriptions) ported from the legacy zola.toml
  as a placeholder pending real design/copy.
- RSS (@astrojs/rss) and JSON Feed endpoints, sitemap
  (@astrojs/sitemap), robots.txt.
- Base.astro: meta description (site-wide default or per-page
  override via llms_description/description), RSS/JSON feed
  <link rel=alternate>, and a webmention endpoint link (plumbing
  only — needs the domain registered on webmention.io to do
  anything).
- toml-content-loader.ts: marked renderer now assigns heading ids
  and collects them into rendered.metadata.headings, so
  render(entry) exposes headings the same way a built-in Markdown
  loader would.
- Writing detail page: table of contents, prev/next navigation,
  series-nav (uses the existing extra.series/series_index fields),
  and tag-overlap related posts.
- Tags index + per-tag pages, tag links wired in from writing cards.
- Pagefind: indexes the build output as part of `pnpm build`
  (astro build && pagefind --site dist), plus a /search/ page using
  Pagefind's default UI.

Verified: astro check clean, full build succeeds (feeds/sitemap/
pagefind all generate correctly), and manually exercised /search/
(real query, highlighted results) and /tags/ in a browser against
the built site.
This commit is contained in:
2026-08-30 19:04:25 +03:00
parent 7b857d4be7
commit 02a7a6197f
13 changed files with 1145 additions and 9 deletions
+28
View File
@@ -0,0 +1,28 @@
/**
* Site-wide metadata. Placeholder copy — ported from the legacy zola.toml
* values as a reasonable default, pending a real editorial pass once the
* design system lands.
*/
export const siteConfig = {
title: "Thoughts and Musings",
description: "Computer science, mathematics, life, and beliefs.",
baseUrl: "https://andwati.com",
author: "andwati",
llmsDescription:
"Ian Andwati's personal digital-legacy site covering computer science, mathematics, life, and beliefs — writings, portfolio, and a curated bookshelf.",
nav: [
{ name: "Writings", url: "/writings/" },
{ name: "Portfolio", url: "/portfolio/" },
{ name: "Bookshelf", url: "/bookshelf/" },
{ name: "Blogs", url: "/blogs/" },
],
tagDescriptions: {
linux:
"Practical notes on running Arch-based Linux distributions, from WiFi hotspot quirks to database setup.",
"subresource-integrity":
"How Subresource Integrity (SRI) hashes protect a site from tampered third-party scripts and stylesheets.",
garuda:
"Setup notes for Garuda Linux, an Arch-based distribution built for performance.",
cors: "Notes on Cross-Origin Resource Sharing (CORS) and how browsers enforce cross-origin security policies.",
} as Record<string, string>,
};