module

Plombir::Seo::Sitemap

Constants

FILENAME = "sitemap.xml"

Output filename under the output directory.

Class methods

build(pages : Array(Page), base : String) : String

Builds the sitemap for pages against base (site.url, empty when unconfigured). Pages sort by URL so output is stable across runs.

Sitemap.build([Sitemap::Page.new("/", "2026-09-13")], "https://x.example")
Source
write(output_dir : String, pages : Array(Page), base : String) : String

Writes the sitemap into output_dir, returning its path.

Source

Nested types