Skip to content

Feed

module Feed
AssemblyNacara.Plugin.Feed
Attributes[<RequireQualifiedAccess>]

An Atom feed of the pages of a collection.

The feed holds absolute urls, so it is written only when the site declares where it is published. It lists the pages of the root locale.

Functions and values

author (name: string) (options: FeedOptions) : FeedOptions
create (options: FeedOptions) : IPlugin
entry (title: string) (published: DateTimeOffset) : FeedEntry
headLink (site: SiteInfo) (options: FeedOptions) : ReactElement
includeContent (value: bool) (options: FeedOptions) : FeedOptions
limit (value: int option) (options: FeedOptions) : FeedOptions
ofCollection<'FrontMatter> (collection: Collection<'FrontMatter>) (describe: 'FrontMatter -> FeedEntry) : FeedOptions

A feed of the pages of a collection: 20 entries at feed.xml, with their bodies.

Parameter
collectionIts pages in the root locale are the entries. Drafts are left out of a build.
describeThe entries are ordered by the Updated date it returns, newest first.
Feed.ofCollection posts (fun post ->
{ Feed.entry post.Title post.Date with
Summary = Some post.Excerpt
}
)
path (value: string) (options: FeedOptions) : FeedOptions
register (options: FeedOptions) (site: Site) : Site
render (site: SiteInfo) (options: FeedOptions) (pages: Page list) : string
title (value: string) (options: FeedOptions) : FeedOptions