Expand description
Sitemap + prerender route enumeration for SEO.
prerender_routes is the canonical list of crawlable pages: the SSG build
prerenders exactly these routes (served via /api/static_routes), the sitemap
is generated from them, and the tests below hold public/sitemap.xml byte-equal
to generate_sitemap so the shipped file can never go stale.
§Usage
use logicaffeine_web::sitemap::generate_sitemap;
let xml = generate_sitemap();
assert!(!xml.is_empty());Structs§
- Sitemap
Entry - Sitemap entry with URL and metadata
Functions§
- generate_
sitemap - Generate the complete sitemap XML
- get_
news_ routes - One entry per published news article, derived from the article registry so a new post can never be forgotten here.
- get_
static_ routes - The curated static pages (path, changefreq, priority).
- prerender_
routes - Every route the SSG build prerenders — the sitemap in path form.
/success(session-specific, noindex),/workspace/:subject, and/registry/package/:name(not enumerable at build time) stay client-side.