Skip to content

A lightweight service to embed your Leaflet publication feed into any Leaflet document.

Notifications You must be signed in to change notification settings

NiklasJordan/leaflet-rss-embed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Leaflet RSS Embed

A lightweight service to embed your Leaflet publication feed into any Leaflet document. The styling matches Leaflet's design, ensuring seamless integration into your existing documents.

Demo

Check out the live demo: https://leaflet.pub/ed1df522-3500-4e21-b6d6-350539096424

How to Use

Embed the service using an iframe with URL parameters to customize the feed display:

Basic Usage

Create an embed block in you leaflet document and add the following URL (replace the URL with your URL of your publications feed):

https://www.niklasjordan.com/leaflet-rss-embed/?rss=YOUR_RSS_FEED_URL

URL Parameters

Parameter Description Default Required
rss Your Leaflet RSS feed URL None Yes
color Link color in hex format (URL-encoded, e.g., %230047FF) #0047FF No
limit Number of feed items to display 5 No

Examples

Display 10 items from your feed:

https://www.niklasjordan.com/leaflet-rss-embed/?rss=https://yourname.leaflet.pub/rss&limit=10

Custom link color (red):

https://www.niklasjordan.com/leaflet-rss-embed/?rss=https://yourname.leaflet.pub/rss&color=%23FF0000

All parameters combined:

https://www.niklasjordan.com/leaflet-rss-embed/?rss=https://yourname.leaflet.pub/rss&color=%2300FF00&limit=3

License

MIT

About

A lightweight service to embed your Leaflet publication feed into any Leaflet document.

Resources

Stars

Watchers

Forks

Languages