Skip to content

Instantly share code, notes, and snippets.

Last active February 8, 2021 11:20
What would you like to do?
Jekyll working RSS feed.xml
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="">
<title>{{ | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description>
<link>{{ site.url }}</link>
<atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
{% for post in site.posts limit:10 %}
<title>{{ post.title }}</title>
<description>{{ post.description | xml_escape }}</description>
<pubDate>{{ | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
<link>{{ site.url }}/{{ post.url }}</link>
<guid isPermaLink="true">{{ site.url }}/{{ post.url }}</guid>
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment