Skip to content

Instantly share code, notes, and snippets.

@akhyarrh
Forked from stammy/index.xml
Last active October 18, 2020 21:31
Show Gist options
  • Select an option

  • Save akhyarrh/94389acfdaf7a009255ef7e22eed8ec2 to your computer and use it in GitHub Desktop.

Select an option

Save akhyarrh/94389acfdaf7a009255ef7e22eed8ec2 to your computer and use it in GitHub Desktop.
RSS Feed for Jekyll (feed/index.xml) - paulstamatiou.com
---
layout: nil
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title type="text" {% if site.lang %}xml:lang="{{ site.lang }}"{% endif %}>{{ site.title }} Feed</title>
{% if site.description %}
<subtitle>{{ site.description | xml_escape }}</subtitle>
{% endif %}
<link type="application/atom+xml" href="{{ site.url }}/feed/" rel="self"/>
<link type="text" href="{{ site.url }}" rel="alternate" {% if site.lang %}xml:lang="{{ site.lang }}"{% endif %}/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ page.url | absolute_url | xml_escape }</id>
<author>
<name>{{ site.author }}</name>
</author>
<rights>Copyright (c) 2013-{{ site.date | %Y }}, {{ site.author }}</rights>
{% for post in site.posts limit:10 %}
<entry>
<title>{{ post.title }}</title>
<link href="{{ post.url | absolute_url }}"/>
<updated>{{ post.last_modified_at | default: post.date | date_to_xmlschema }}</updated>
<id>{{ post.id }}</id>
<content type="html">{{ post.content | xml_escape }}</content>
</entry>
{% endfor %}
</feed>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment