mirror of
https://github.com/andwati/andwati.com.git
synced 2026-12-03 21:58:47 +00:00
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:
@@ -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>,
|
||||
};
|
||||
Reference in New Issue
Block a user