Simple Serum plugin building RSS of latest posts.
Put rss_generator.ex
under lib
, rss.xml.eex
under pages
and add RssGenerator
to plugins in your serum.exs
file.
You may also need to add elixirc_paths: ["lib"]
inside mix.exs
's project, so Elixir knows it has to compile lib
, which is not the Serum's default.
Important!: don't forget to customize the RSS title, description, URL's etc in rss.xml.eex
.
p.s. It's code adapted from an unmerged Serum PR