mirror of
https://github.com/andwati/andwati.com.git
synced 2026-11-28 11:28:46 +00:00
- 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.
23 lines
727 B
Plaintext
23 lines
727 B
Plaintext
---
|
|
import Base from "../layouts/Base.astro";
|
|
---
|
|
|
|
<Base title="Search">
|
|
<h1>Search</h1>
|
|
<p class="meta">
|
|
Search only works against a built site (`pnpm build` runs Pagefind after
|
|
`astro build`) — it has no index to query in `astro dev`.
|
|
</p>
|
|
<div id="search"></div>
|
|
<link href="/pagefind/pagefind-ui.css" rel="stylesheet" />
|
|
<script is:inline src="/pagefind/pagefind-ui.js"></script>
|
|
<script is:inline>
|
|
window.addEventListener("DOMContentLoaded", () => {
|
|
if (window.PagefindUI) {
|
|
// biome-ignore lint/correctness/noUndeclaredVariables: loaded from /pagefind/pagefind-ui.js above
|
|
new PagefindUI({ element: "#search", showSubResults: true });
|
|
}
|
|
});
|
|
</script>
|
|
</Base>
|