HTMX on static pages

Boosted links swap only #site-main, so navigation feels instant while every page stays a real URL.

The layout sets hx-boost="true" on body with hx-target="#site-main" and hx-select="#site-main". HTMX fetches the full HTML document, extracts the main region, and swaps it in.

What stays static

Post bodies, indices, and assets are generated at build time. HTMX only handles in-site navigation between those prebuilt pages.

What could come later

  • Cloudflare Functions for search or comments
  • Pagefind for offline full-text search
  • Fragment pages for “load more” pagination