Skip to main content

Module sitemap

Module sitemap 

Source
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§

SitemapEntry
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.