Sha256: 80bc35f46c761bfa2ad80d1aae2b06aca94c61ac1dd51ed85ee8b0f8a970198e

Contents?: true

Size: 580 Bytes

Versions: 7

Compression:

Stored size: 580 Bytes

Contents

xml.instruct! :xml, version: "1.0"
xml.rss(version: "2.0"){
  xml.channel{
    xml.title "#{Setting.app_name} - #{t('plugin.press')}"
    xml.link posts_url
    xml.description "#{Setting.app_name} - #{t('plugin.press')}"
    xml.language('zh-CN')
      for post in @posts
        xml.item do
          xml.title post.title
          xml.description markdown(post.body)
          xml.author post.user&.login
          xml.pubDate(post.created_at.strftime("%a, %d %b %Y %H:%M:%S %z"))
          xml.link post_url(post)
          xml.guid post_url(post)
        end
      end
  }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
homeland-press-0.4.2 app/views/homeland/press/posts/index.xml.builder
homeland-press-0.4.1 app/views/homeland/press/posts/index.xml.builder
homeland-press-0.4.0 app/views/homeland/press/posts/index.xml.builder
homeland-press-0.3.4 app/views/homeland/press/posts/index.xml.builder
homeland-press-0.3.3 app/views/homeland/press/posts/index.xml.builder
homeland-press-0.3.2 app/views/homeland/press/posts/index.xml.builder
homeland-press-0.3.1 app/views/homeland/press/posts/index.xml.builder