Feed
module Feed| Assembly | Nacara.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) : FeedOptionscreate (options: FeedOptions) : IPluginentry (title: string) (published: DateTimeOffset) : FeedEntryheadLink (site: SiteInfo) (options: FeedOptions) : ReactElementincludeContent (value: bool) (options: FeedOptions) : FeedOptionslimit (value: int option) (options: FeedOptions) : FeedOptionsofCollection<'FrontMatter> (collection: Collection<'FrontMatter>) (describe: 'FrontMatter -> FeedEntry) : FeedOptions
ofCollection<'FrontMatter> (collection: Collection<'FrontMatter>) (describe: 'FrontMatter -> FeedEntry) : FeedOptionsA feed of the pages of a collection: 20 entries at feed.xml, with their bodies.
| Parameter | |
|---|---|
collection | Its pages in the root locale are the entries. Drafts are left out of a build. |
describe | The 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) : FeedOptionsregister (options: FeedOptions) (site: Site) : Siterender (site: SiteInfo) (options: FeedOptions) (pages: Page list) : stringtitle (value: string) (options: FeedOptions) : FeedOptions