Created
January 25, 2011 15:00
-
-
Save stammy/795024 to your computer and use it in GitHub Desktop.
RSS Feed for Jekyll (feed/index.xml) - paulstamatiou.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: nil | |
--- | |
<?xml version="1.0" encoding="utf-8"?> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<title type="text" xml:lang="en">{{ site.root_desc }}</title> | |
<link type="application/atom+xml" href="http://paulstamatiou.com/feed/" rel="self"/> | |
<link type="text" href="http://paulstamatiou.com" rel="alternate"/> | |
<updated>{{ site.time | date_to_xmlschema }}</updated> | |
<id>http://paulstamatiou.com</id> | |
<author> | |
<name>Paul Stamatiou</name> | |
</author> | |
<rights>Copyright (c) 2005-2011, Paul Stamatiou; all rights reserved.</rights> | |
{% for post in site.posts limit:20 %} | |
<entry> | |
<title>{{ post.title }}</title> | |
<link href="http://paulstamatiou.com{{ post.url }}"/> | |
<updated>{{ post.date | date_to_xmlschema }}</updated> | |
<id>http://paulstamatiou.com{{ post.id }}</id> | |
<content type="html">{{ post.content | xml_escape }}{% include rss_footer.html %}</content> | |
</entry> | |
{% endfor %} | |
</feed> |
This file works simply like all other Jekyll files. Drop it in the main directory, name it something like atom.xml
and it will be generated with your site. Then you can link to it if you'd like just how you would any other page.
lol people get angry when someone gives you free code
Works like a charm. Thanks a lot!
@jonschlinkert code without comments or instructions is just pollution. It's like having 1000 (bad) trees hiding the 10 golden ones in the forest.
Cool..!! thanks for this 😃
thank youuu 👍
Think about adding PubSubHubbub too: in the <head>
section add:
<link rel="hub" href="http://pubsubhubbub.superfeedr.com/" />
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To use it, follow this guideline: https://github.com/snaptortoise/jekyll-rss-feeds