Sha256: 29bca683a81df32a41c939d77bb204e2fa7f2dbdebcc1656805d090bd05519bc
Contents?: true
Size: 1.38 KB
Versions: 2
Compression:
Stored size: 1.38 KB
Contents
--- --- !!! XML %feed{ 'xml:lang'=>'en-US', :xmlns=>'http://www.w3.org/2005/Atom' } %id= "#{site.base_url}/" %title #{page.title} - if ( defined?( site.author ) ) %author - if ( defined?( site.author.name ) ) %name= site.author.name - if ( site.author.email ) %email= site.author.email - else %name= site.author - unless page.entries.empty? %updated= page.entries.first.date.xmlschema %link{:rel=>"self", :type=>"application/atom+xml", :href=>"#{site.base_url}#{page.url}" } %link{:rel=>"alternate", :type=>"text/html", :href=>"#{site.base_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}" } - if ( defined?( entry.author ) ) %author - if ( defined?( entry.author.name ) ) %name= entry.author.name - if ( entry.author.email ) %email= entry.author.email - else %name= entry.author %summary #{summarize( html_to_text( entry.content ), 100 )}... %content{:type=>'html'} = clean_html( escape_once( fully_qualify_urls( site.base_url, find_and_preserve( entry.content ) ) ) )
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
awestruct-0.2.1 | lib/awestruct/extensions/template.atom.haml |
awestruct-0.2.0 | lib/awestruct/extensions/template.atom.haml |