views/atom.haml in nesta-0.9.13 vs views/atom.haml in nesta-0.10.0
- old
+ new
@@ -1,12 +1,12 @@
!!! XML
%feed(xmlns='http://www.w3.org/2005/Atom')
%title(type='text')= @title
%generator(uri='http://nestacms.com') Nesta
%id= atom_id
- %link(href="#{url('/articles.xml')}" rel='self')
- %link(href="#{url('/')}" rel='alternate')
+ %link(href="#{path_to('/articles.xml', :uri => true)}" rel='self')
+ %link(href="#{path_to('/', :uri => true)}" rel='alternate')
%subtitle(type='text')= @subtitle
- if @articles[0]
%updated= @articles[0].date(:xmlschema)
- if @author
%author
@@ -17,10 +17,10 @@
- if @author['email']
%email= @author['email']
- @articles.each do |article|
%entry
%title= article.heading
- %link{ :href => url(article.path), :type => 'text/html', :rel => 'alternate' }
+ %link{ :href => path_to(article.path, :uri => true), :type => 'text/html', :rel => 'alternate' }
%id= atom_id(article)
%content(type='html')&= find_and_preserve(absolute_urls(article.body(self)))
%published= article.date(:xmlschema)
%updated= article.date(:xmlschema)
- article.categories.each do |category|