StaticBlog.Rss (StaticBlog v0.2.0)

Copy Markdown View Source

Builds an RSS 2.0 feed document from the blog's posts.

Summary

Functions

Build an RSS 2.0 XML feed for the given posts.

Functions

feed(posts, site)

@spec feed(
  [StaticBlog.Post.t()],
  keyword()
) :: binary()

Build an RSS 2.0 XML feed for the given posts.

Arguments

  • posts is the list of StaticBlog.Post.t/0 structs to include.

  • site is the site configuration keyword list.

Returns

  • A binary containing the complete RSS XML document.