Socket
Book a DemoInstallSign in
Socket

middleman-rss_items

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

middleman-rss_items

0.0.2
bundlerRubygems
Version published
Maintainers
3
Created
Source

middleman-rss_items

Gem Version Code Climate Libraries.io dependency status for GitHub repo GitHub

middleman-rss_items provide a method to get RSS resources and create RSS feed like html.

Installation

Add middleman-rss_item to your Gemfile:

gem "middleman-rss_item"

Configuration

In config.rb

activate :rss_item do |rss_item|
  rss.rss_resources = [ # Websites you want to display
    {
      name: :blog, # name to be accessed by template
      url: 'https://blog.seibii.co.jp/rss/' # RSS url
    }
  ]
end

Usage

In your templates

<% rss_items[:blog].each do |rss_item| %>
  <%= rss_item.title %>
  br
  <%= rss_item.summary %>
  br
  <%= rss_item.url %>
  br
  <%= rss_item.published %>
  br
  <%= rss_item.image %>
<% end %>

This gem using feedjira as parser and the rss_item is object of that. So, please checkout feedjira about the objects.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/seibii/middleman-rss_items. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the middleman-rss_items project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

FAQs

Package last updated on 03 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.