Sha256: 99c9c035f89de278695351f0eccabc16a06c7f950b9c10e4a6debd8a984bc925
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