struct

Marten::SEO::SitemapEntry

Inherits Struct < Value < Object

One indexable URL for the sitemap. params are passed to reverse to build the path per locale; lastmod is an optional W3C date string.

Constructors

new(route_name : String, params : Hash(String, String) = {} of String => String, changefreq : String = "weekly", priority : Float64 = 0.5, lastmod : String | Nil = nil, locales : Array(String) | Nil = nil)

Instance methods

changefreq
lastmod
locales

When set, the sitemap emits this entry only for these locales (and omits x-default unless the default locale is among them). Nil = all.

params
priority
route_name