Sha256: 769dfcdd4d457211a99d97783af29cfe0b1de3c1b52f63d6910f5deed825f896

Contents?: true

Size: 799 Bytes

Versions: 21

Compression:

Stored size: 799 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 data.blog.articles.first.date.to_time.iso8601
  xml.author { xml.name "Blog Author" }

  data.blog.articles.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

21 entries across 21 versions & 2 rubygems

Version Path
middleman-blog-3.0.0.beta.3 fixtures/utf8ouch/source/feed.xml.builder
middleman-blog-0.1.5 lib/middleman-blog/template/source/feed.xml.builder
middleman-blog-0.1.4 lib/middleman-blog/template/source/feed.xml.builder
middleman-blog-0.1.3 lib/middleman-blog/template/source/feed.xml.builder
middleman-blog-0.1.2 lib/middleman-blog/template/source/feed.xml.builder
middleman-blog-0.1.0 lib/middleman-blog/template/source/feed.xml.builder
middleman-2.0.2 lib/middleman/templates/blog/source/feed.xml.builder
middleman-2.0.1.1 lib/middleman/templates/blog/source/feed.xml.builder
middleman-2.0.1 lib/middleman/templates/blog/source/feed.xml.builder
middleman-2.0.0.3 lib/middleman/templates/blog/source/feed.xml.builder
middleman-2.0.0.2 lib/middleman/templates/blog/source/feed.xml.builder
middleman-2.0.0.1 lib/middleman/templates/blog/source/feed.xml.builder
middleman-2.0.0 lib/middleman/templates/blog/source/feed.xml.builder
middleman-2.0.0.rc99 lib/middleman/templates/blog/source/feed.xml.builder
middleman-2.0.0.rc98 lib/middleman/templates/blog/source/feed.xml.builder
middleman-2.0.0.rc97 lib/middleman/templates/blog/source/feed.xml.builder
middleman-2.0.0.rc96 lib/middleman/templates/blog/source/feed.xml.builder
middleman-2.0.0.rc95 lib/middleman/templates/blog/source/feed.xml.builder
middleman-2.0.0.rc93 lib/middleman/templates/blog/source/feed.xml.builder
middleman-2.0.0.rc92 lib/middleman/templates/blog/source/feed.xml.builder