SitemapEntry Pennington.Feeds
Single <url> row written to sitemap.xml.
Properties
ChangeFrequencystring?- Default:
nullOptional sitemapchangefreqhint (e.g.weekly). LastModifiedSystem.DateTime?- Default:
nullLast-modified timestamp, when available. Prioritydouble?- Default:
nullOptional sitemappriorityhint between 0.0 and 1.0. UrlPennington.Routing.UrlPath- Absolute URL for this sitemap entry.
Constructors
.ctor
#public record SitemapEntry(
UrlPath Url,
DateTime? LastModified,
string? ChangeFrequency,
double? Priority
);Single <url> row written to sitemap.xml.
Parameters
UrlUrlPath- Absolute URL for this sitemap entry.
LastModifiedDateTime?- Last-modified timestamp, when available.
ChangeFrequencystring?- Optional sitemap
changefreqhint (e.g.weekly). Prioritydouble?- Optional sitemap
priorityhint between 0.0 and 1.0.
Pennington.Feeds.SitemapEntry
namespace Pennington.Feeds;
/// Single <url> row written to sitemap.xml.
public record SitemapEntry
{
/// Single <url> row written to sitemap.xml.
public record SitemapEntry(
UrlPath Url,
DateTime? LastModified,
string? ChangeFrequency,
double? Priority
);
/// Optional sitemap changefreq hint (e.g. weekly).
string? ChangeFrequency
;
/// Last-modified timestamp, when available.
DateTime? LastModified
;
/// Optional sitemap priority hint between 0.0 and 1.0.
double? Priority
;
/// Absolute URL for this sitemap entry.
UrlPath Url
;
}