Meta.svelte now self-resolves title, description, and SEO tags using a synchronous import.meta.glob PageMeta lookup keyed by the current pathname via $app/state. Props are still accepted as fallbacks for pages without PageMeta exports (error page).

What Changed

Meta.svelte

Builds a pages map via import.meta.glob and resolves pages[page.url.pathname]. Title and description come from PageMeta with prop fallbacks. New tags added:

  • <link rel="canonical"> from canonical
  • <meta name="robots"> from noindex
  • <meta property="og:locale"> from lang
  • <meta name="keywords"> from tags

Publication / PublicationHead

meta prop removed from Publication and PublicationHead. <Meta /> is now called with no props.

Page meta exports

Added description field to every page's PageMeta export, migrated from the former Publication meta prop.

Zero-prop Meta

Self-resolving page metadata

A static site template built with SvelteKit.

Sveleton, 2025