Merge pull request #2996 from pearkes/website-rss-absolute

website/www: use absolute links in the feed
This commit is contained in:
Mitchell Hashimoto 2014-02-18 10:17:08 -08:00
commit 8159f248a7
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
blog.articles[0..5].each do |article| blog.articles[0..5].each do |article|
xml.entry do xml.entry do
xml.title article.title xml.title article.title
xml.link "rel" => "alternate", "href" => article.url xml.link "rel" => "alternate", "href" => "http://www.vagrantup.com#{article.url}"
xml.id article.url xml.id article.url
xml.published article.date.to_time.iso8601 xml.published article.date.to_time.iso8601
xml.updated article.date.to_time.iso8601 xml.updated article.date.to_time.iso8601