Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

readme.md

Simple RSS Embed Plugin

About

This plugin allows you to embed content from an RSS feed on to your website using only data attributes directly in the HTML.

Usage

Add the plugin to your page, just before the </body> tag.

<script src="path/to/simple-rss.js"></script>

Create the container for the RSS feed to show in, and pass options in via data attributes.

<div 
    data-rss-feed="http://binonabin.tumblr.com/rss" 
    data-rss-link-titles="false" 
    data-rss-title-wrapper="h3" 
    data-rss-max="5">
</div>

Example

Options

data-rss-feed (required)

Specifies the RSS feed to pull content from

data-rss-link-titles (optional)

Specifies whether to link the titles to the original post.

default: true

data-rss-title-wrapper (optional)

Specifies the HTML element to wrap the titles.

default: h2

data-rss-max (optional)

Specifies the number of entries to output

default: 10

About

A simple JS plugin for adding an RSS feed to your page

Resources

License

Releases

No releases published
You can’t perform that action at this time.