Astral.Plugin.Sitemap (Astral v0.2.3)

Copy Markdown View Source

Generated sitemap.xml plugin.

The plugin is intentionally implemented through XM so the XML DSL is dogfooded by a real site feature and can later be extracted into a generic library.

Options

  • :site_url - required absolute site URL, for example "https://example.com".
  • :path - sitemap route path. Defaults to "/sitemap.xml".
  • :include_routes - include plugin-generated routes in addition to pages. Defaults to true.
  • :exclude - list of route paths or one-arity predicate returning true for routes to exclude.
  • :lastmod - one-arity function returning lastmod for a page or route.
  • :changefreq - atom/string or one-arity function for <changefreq>.
  • :priority - number/string or one-arity function for <priority>.