Sha256: 711b140ff7dfb79b9beede596deaa2d7ece16da45a299d3c9051173096b1da7b

Contents?: true

Size: 1.02 KB

Versions: 5

Compression:

Stored size: 1.02 KB

Contents

!!! XML
%feed(xmlns='http://www.w3.org/2005/Atom')
  %title(type='text')= @title
  %generator(uri='http://nestacms.com') Nesta
  %id= atom_id
  %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
      - if @author['name']
        %name= @author['name']
      - if @author['uri']
        %uri= @author['uri']
      - if @author['email']
        %email= @author['email']
  - @articles.each do |article|
    %entry
      %title= article.heading
      %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|
        %category{ :term => category.permalink }

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nesta-0.13.0 views/atom.haml
nesta-0.12.0 views/atom.haml
nesta-0.11.1 views/atom.haml
nesta-0.11.0 views/atom.haml
nesta-0.10.0 views/atom.haml