RssFeedBuilder Pennington.Feeds
Builds RSS feed items from rendered content.
Constructors
.ctor
#public RssFeedBuilder(UrlPath canonicalBase);Initializes the builder with the canonical site base URL used to produce absolute item links.
Parameters
canonicalBaseUrlPath
Methods
Build
#public ImmutableList<RssFeedItem> Build(IReadOnlyList<RenderedItem> items);Build RSS feed items from rendered items. Only includes items that have a Date and are not drafts. Sorted by date descending.
Parameters
itemsIReadOnlyList<RenderedItem>
Returns
ImmutableList<RssFeedItem>Pennington.Feeds.RssFeedBuilder
namespace Pennington.Feeds;
/// Builds RSS feed items from rendered content.
public class RssFeedBuilder
{
/// Initializes the builder with the canonical site base URL used to produce absolute item links.
public RssFeedBuilder(UrlPath canonicalBase);
/// Build RSS feed items from rendered items. Only includes items that have a Date and are not drafts. Sorted by date descending.
public ImmutableList<RssFeedItem> Build(IReadOnlyList<RenderedItem> items);
}