index.atom.builder 670 B

123456789101112131415161718192021
  1. atom_feed do |feed|
  2. feed.title(t :site_title)
  3. feed.subtitle(t :summary)
  4. feed.updated(@actionPages[0].created_at) if @actionPages.length > 0
  5. @actionPages.each do |actionPage|
  6. feed.entry(actionPage) do |entry|
  7. entry.link(rel: "enclosure", type: actionPage.featured_image.content_type || "image/png",
  8. href: URI.join(root_url, image_path(actionPage.featured_image)))
  9. entry.title(actionPage.title)
  10. entry.summary(markdown(actionPage.summary), type: "html")
  11. entry.content(markdown(actionPage.description), type: "html")
  12. entry.author do |author|
  13. author.name(t :organization_name)
  14. end
  15. end
  16. end
  17. end