Skip to content

A Jekyll plugin that converts relative URLs to absolute ones in href and src attributes. Designed for RSS feeds.

Notifications You must be signed in to change notification settings

eincs/jekyll-rss-absolute-urls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

RSS Feed Relative URLs to Absolute filter

A Jekyll plugin that provides a Liquid filter to convert relative URLs to absolute ones in RSS feeds. Since some feed readers do not support relative URLs, it is necessary to convert them. This plugin targets href and src attributes found in your content.

Install

  • Copy the plugin file to your /_plugins directory (create one if you don't already have one)
  • Apply the filter to your XML feed file(s). It might look something like this: <description>{{ post.content | xml_escape | relative_urls_to_absolute }}</description>

Credits and Example

  • Special thanks to John Tornow for the help!
  • You can see the plugin working on my site, halph. Here's the feed.

About

A Jekyll plugin that converts relative URLs to absolute ones in href and src attributes. Designed for RSS feeds.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages