Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seibii/middleman-rss_items
:m: Middleman plugin to create RSS feed
https://github.com/seibii/middleman-rss_items
feed middleman middleman-extension rss static-site-generator
Last synced: about 1 month ago
JSON representation
:m: Middleman plugin to create RSS feed
- Host: GitHub
- URL: https://github.com/seibii/middleman-rss_items
- Owner: seibii
- License: mit
- Created: 2020-02-06T16:15:00.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-01T03:00:31.000Z (almost 2 years ago)
- Last Synced: 2023-03-03T01:38:21.609Z (almost 2 years ago)
- Topics: feed, middleman, middleman-extension, rss, static-site-generator
- Language: Ruby
- Size: 272 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# middleman-rss_items
[![Gem Version](https://badge.fury.io/rb/middleman-rss_items.svg)](https://badge.fury.io/rb/middleman-rss_items)
[![Code Climate](https://codeclimate.com/github/seibii/middleman-rss_items/badges/gpa.svg)](https://codeclimate.com/github/seibii/middleman-rss_items)
[![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/seibii/middleman-rss_items.svg)](https://libraries.io/github/seibii/middleman-rss_items)
![](http://ruby-gem-downloads-badge.herokuapp.com/middleman-rss_items?type=total)
![GitHub](https://img.shields.io/github/license/seibii/middleman-rss_items.svg)`middleman-rss_items` provide a method to get RSS resources and create RSS feed like html.
## Installation
Add middleman-rss_item to your Gemfile:
```ruby
gem "middleman-rss_item"
```## Configuration
In `config.rb`
```ruby
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
```erb
<% 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](https://github.com/feedjira/feedjira) as parser and the `rss_item` is object of that.
So, please checkout [feedjira](https://github.com/feedjira/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](http://contributor-covenant.org) code of conduct.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
## 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](https://github.com/seibii/middleman-rss_items/blob/master/CODE_OF_CONDUCT.md).