Sha256: ce9309add623e16ee79e799387d8351ab319715791389723da2c8097c159a238
Contents?: true
Size: 853 Bytes
Versions: 4
Compression:
Stored size: 853 Bytes
Contents
url = if @tag.nil? enki.formatted_posts_path(:format => 'atom', :only_path => false) else enki.posts_path(:tag => @tag, :format => 'atom', :only_path => false) end atom_feed( :url => url, :root_url => enki.posts_path(:tag => @tag, :only_path => false), :schema_date => '2008' ) do |feed| feed.title posts_title(@tag) feed.updated @posts.empty? ? Time.now.utc : @posts.collect(&:edited_at).max feed.generator "Enki", "uri" => "http://enkiblog.com" feed.author do |xml| xml.name author.name xml.email author.email unless author.email.nil? end @posts.each do |post| feed.entry(post, :url => post_path(post, :only_path => false), :published => post.published_at, :updated => post.edited_at) do |entry| entry.title post.title entry.content post.body_html, :type => 'html' end end end
Version data entries
4 entries across 4 versions & 1 rubygems