SitemapCandidate Pennington.Feeds
A candidate row for the sitemap — a route and (optionally) the front matter metadata that was parsed for it. For markdown sources, metadata carries Date (lastmod) and IsDraft (filter). For programmatic / Razor sources we typically have no metadata, which is fine: those entries are emitted with their URL and no lastmod.
Properties
MetadataPennington.FrontMatter.IFrontMatter?- Default:
nullFront matter for the route, when available. RoutePennington.Routing.ContentRoute- Route to emit in the sitemap.
Constructors
.ctor
#public sealed record SitemapCandidate(ContentRoute Route, IFrontMatter? Metadata);A candidate row for the sitemap — a route and (optionally) the front matter metadata that was parsed for it. For markdown sources, metadata carries Date (lastmod) and IsDraft (filter). For programmatic / Razor sources we typically have no metadata, which is fine: those entries are emitted with their URL and no lastmod.
Parameters
RouteContentRoute- Route to emit in the sitemap.
MetadataIFrontMatter?- Front matter for the route, when available.
Pennington.Feeds.SitemapCandidate
namespace Pennington.Feeds;
/// A candidate row for the sitemap — a route and (optionally) the front matter metadata that was parsed for it. For markdown sources, metadata carries Date (lastmod) and IsDraft (filter). For programmatic / Razor sources we typically have no metadata, which is fine: those entries are emitted with their URL and no lastmod.
public record SitemapCandidate
{
/// A candidate row for the sitemap — a route and (optionally) the front matter metadata that was parsed for it. For markdown sources, metadata carries Date (lastmod) and IsDraft (filter). For programmatic / Razor sources we typically have no metadata, which is fine: those entries are emitted with their URL and no lastmod.
public sealed record SitemapCandidate(ContentRoute Route, IFrontMatter? Metadata);
/// Front matter for the route, when available.
IFrontMatter? Metadata
;
/// Route to emit in the sitemap.
ContentRoute Route
;
}