vagrant/website/www/source/blog_feed.xml.builder

24 lines
915 B
Plaintext
Raw Normal View History

2013-09-16 23:07:58 +00:00
xml.instruct!
xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
xml.title "Vagrant Blog"
xml.subtitle "Release announcements, how-to guides, and more for Vagrant."
2015-08-12 23:32:10 +00:00
xml.id "https://www.vagrantup.com/blog.html"
xml.link "href" => "https://www.vagrantup.com/blog.html"
xml.link "href" => "https://www.vagrantup.com/blog_feed.xml", "rel" => "self"
2013-09-16 23:07:58 +00:00
xml.updated blog.articles.first.date.to_time.iso8601
xml.author { xml.name "Vagrant" }
blog.articles[0..5].each do |article|
xml.entry do
xml.title article.title
2015-08-12 23:32:10 +00:00
xml.link "rel" => "alternate", "href" => "https://www.vagrantup.com#{article.url}"
2013-09-16 23:07:58 +00:00
xml.id article.url
xml.published article.date.to_time.iso8601
xml.updated article.date.to_time.iso8601
xml.author { xml.name article.data.author }
xml.summary article.summary, "type" => "html"
xml.content article.body, "type" => "html"
end
end
end