charge/rss

Types

pub type RSSFeed {
  RSSFeed(title: String, description: String, base_url: String)
}

Constructors

  • RSSFeed(title: String, description: String, base_url: String)
pub type RSSItem {
  RSSItem(
    title: String,
    path: @internal SitePath,
    description: option.Option(String),
    date: option.Option(date.IsoDate),
    content: option.Option(element.ElementTree),
  )
}

Constructors

Values

pub fn render(feed: RSSFeed, pages: List(RSSItem)) -> String
pub fn with_rss(
  pipeline: charge.Pipeline(a, b),
  feed: RSSFeed,
  get_item: fn(b, charge.HTMLFile) -> option.Option(RSSItem),
) -> charge.Pipeline(a, b)
Search Document