Sha256: d4651af55f83f38b646b981bf63168d8fa602dcb085a8bceb91360e6e9e7b065
Contents?: true
Size: 797 Bytes
Versions: 1
Compression:
Stored size: 797 Bytes
Contents
xml.instruct! xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do xml.title "Blog Name" xml.subtitle "Blog subtitle" xml.id "http://blog.url.com/" xml.link "href" => "http://blog.url.com/" xml.link "href" => "http://blog.url.com/feed.xml", "rel" => "self" xml.updated blog.articles.first.date.to_time.iso8601 xml.author { xml.name "Blog Author" } blog.articles[0..5].each do |article| xml.entry do xml.title article.title xml.link "rel" => "alternate", "href" => article.url xml.id article.url xml.published article.date.to_time.iso8601 xml.updated article.date.to_time.iso8601 xml.author { xml.name "Article Author" } # xml.summary article.summary, "type" => "html" xml.content article.body, "type" => "html" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
middleman-blog-3.2.0 | lib/middleman-blog/template/source/feed.xml.builder |