Sha256: 1472399f37b7b437b805481b7aa932a0c702bc7ca8fc21344fd293f377dd5c20
Contents?: true
Size: 792 Bytes
Versions: 4
Compression:
Stored size: 792 Bytes
Contents
xml.instruct! xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do xml.title config.site_title xml.subtitle config.site_tagline xml.id config.site_url xml.link "href" => config.site_url xml.link "href" => "#{config.site_url}/feed.xml", "rel" => "self" xml.updated data.news.first.date.to_time.iso8601 xml.author { xml.name config.site_author } site.contents.find("news/**/*").each do |post| xml.entry do url= "#{config.site_url}/news/#{post._id}-#{post.slug}.html" xml.title post.title xml.link "rel" => "alternate", "href" => url xml.id url xml.published post.date.to_time.iso8601 xml.updated post.date.to_time.iso8601 xml.author { xml.name config.site_author } xml.content render(post), "type" => "html" end end end
Version data entries
4 entries across 4 versions & 1 rubygems