How to embed
The attributes you can set let you tailor things, here's what you can do
|id||n/a||Yes||You must set the value of your entry point's id to "retainable-rss-embed".|
|data-rss||n/a||Yes||You must provide at least one valid url to the RSS endpoint, multiple rss feeds can be combined with a comma separated list|
|data-maxcols||2||Optional||must be an interger of 1, 2, 3, 4, 6 or 12 and controls the number of cols display in the index view|
|data-layout||grid||Optional||Styles the index of available posts, can be set to "grid" or "slider"|
|data-poststyle||modal||Optional||The style of posts when you click on an excerpt in the index can be set to one of: "modal", "inline" or "external", external opens the post's source with a target of _blank|
|data-buttonclass||Optional||Space separated list of classes to apply to the read more button|
|data-readmore||Read more||Optional||Text to show on the read more button|
|data-offset||0||Optional||If you have a fixed header then you can set a negative offset integer for scrolling when the posts are shown inline e.g. -100 (converts to pixels)|
and here's an example of what it might look like.
<div id="retainable-rss-embed" data-rss="https://medium.com/feed/retainable,https://medium.com/feed/vue-mastery"
data-readmore="Read the rest"
The script tag looks like this:
You can see it in action on this demo page.
If you want to keep updated about changes to the code, click here