StaticBlog.Sitemap (StaticBlog v0.2.0)

Copy Markdown View Source

Generates a sitemap.xml document listing every public URL on the blog.

Summary

Functions

Build a sitemap XML document for the given published posts.

Functions

generate(posts, site)

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

Build a sitemap XML document for the given published posts.

Arguments

  • posts is the list of published posts to include.

  • site is the site configuration keyword list.

Returns

  • A binary containing the complete sitemap XML document.