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
MetadataIFrontMatter- Front matter for the route, when available.
RouteContentRoute- Route to emit in the sitemap.
Constructors
SitemapCandidate
#public 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
{
/// Front matter for the route, when available.
public IFrontMatter Metadata { get; set; }
/// Route to emit in the sitemap.
public ContentRoute Route { get; set; }
/// 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 SitemapCandidate(ContentRoute Route, IFrontMatter Metadata)
;
}