Sha256: 4a4ad3ba0d3b1744ecca192fa803f49ca779016376c478c251dc8e3b7c02f664

Contents?: true

Size: 1.06 KB

Versions: 3

Compression:

Stored size: 1.06 KB

Contents

---
---
!!! XML

%feed{ 'xml:base'=>site.base_url, 'xml:lang'=>'en-US', :xmlns=>'http://www.w3.org/2005/Atom' }
  %id #{site.base_url}
  %title #{page.title}
  - unless page.entries.empty?
    %updated= page.entries.first.date.xmlschema
    %link{:rel=>"alternate", :type=>"text/html",            :href=>site.base_url}
    %link{:rel=>"self",      :type=>"application/atom+xml", :href=>"#{site.base_url}#{page.url}" }
    - for entry in page.entries
      %entry
        %id #{site.base_url}#{entry.url}
        %title= escape_once( entry.title )
        %updated= entry.date.xmlschema
        %link{:rel=>"alternate", :type=>"text/html", :href=>"#{site.base_url}#{entry.url}" }
        %author
          - if ( defined?( entry.author.name ) )
            %name= entry.author.name
            - if ( entry.author.email )
              %name= entry.author.email
          - else
            %name= entry.author
        %summary
          = html_to_text( entry.content )
        %content{:type=>'html'}
          = escape_once( fully_qualify_urls( site.base_url, entry.content )  )
  

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
awestruct-0.0.6 lib/awestruct/extensions/template.atom.haml
awestruct-0.0.5 lib/awestruct/extensions/template.atom.haml
awestruct-0.0.4 lib/awestruct/extensions/template.atom.haml