Skip to content

Instantly share code, notes, and snippets.

@davidmerfield
Last active March 29, 2019 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidmerfield/4c09d17c50f79f9b44d615a5cb08865e to your computer and use it in GitHub Desktop.
Save davidmerfield/4c09d17c50f79f9b44d615a5cb08865e to your computer and use it in GitHub Desktop.
RSS feed which improves the display of images on Micro.blog
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title><![CDATA[ {{{title}}}]]></title>
<link>{{{blogURL}}}</link>
<atom:link href="{{{blogURL}}}/feed.rss" rel="self" type="application/rss+xml"/>
<description><![CDATA[ The feed of updates to {{{title}}} ]]></description>
{{#recentEntries}}
<item>
<title>{{#titleTag}}<![CDATA[ {{{title}}} ]]>{{/titleTag}}</title>
<link>{{{absoluteURL}}}</link>
<guid>{{{absoluteURL}}}</guid>
{{! RSS feeds need a RFC 822 date}}
<pubDate>{{#formatDate}}ddd, DD MMM YYYY HH:mm:ss ZZ{{/formatDate}}</pubDate>
<dc:creator><![CDATA[ {{{title}}} ]]></dc:creator>
<description><![CDATA[ {{#absoluteURLs}} {{{body}}} {{/absoluteURLs}} ]]></description>
</item>
{{/recentEntries}}
</channel>
</rss>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment