diff options
author | 2014-05-17 18:09:58 -0400 | |
---|---|---|
committer | 2014-05-17 18:09:58 -0400 | |
commit | 6db3f0bccaea32ae26f60094c1e92eb240d2f9c8 (patch) | |
tree | 7853c39d1972f54a4e1024a5b241fd4e195174a5 | |
parent | 826df31380d0e77253f79c64c0772d91fbd0a152 (diff) | |
download | kompetenzbolzen.github.io-6db3f0bccaea32ae26f60094c1e92eb240d2f9c8.tar.gz |
RSS feed option added
-rw-r--r-- | _config.yml | 2 | ||||
-rw-r--r-- | feed.xml | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/_config.yml b/_config.yml index 9292b94..6902b49 100644 --- a/_config.yml +++ b/_config.yml @@ -31,7 +31,7 @@ footer-links: instagram: linkedin: pinterest: - rss: + rss: # for rss, add the entire URL of our site, e.g. http://www.barryclark.co twitter: your-username # diff --git a/feed.xml b/feed.xml new file mode 100644 index 0000000..899221c --- /dev/null +++ b/feed.xml @@ -0,0 +1,21 @@ +--- +layout: none +--- +<?xml version="1.0" encoding="UTF-8"?> +<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> + <channel> + <title>{{ site.name | xml_escape }}</title> + <description>{{ site.description | xml_escape }}</description> + <link>{{ site.footer-links.rss }}</link> + <atom:link href="{{ site.footer-links.rss }}/feed.xml" rel="self" type="application/rss+xml" /> + {% for post in site.posts limit:10 %} + <item> + <title>{{ post.title | xml_escape }}</title> + <description>{{ post.content | xml_escape }}</description> + <pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate> + <link>{{ site.footer-links.rss }}/{{ post.url }}</link> + <guid isPermaLink="true">{{ site.footer-links.rss }}/{{ post.url }}</guid> + </item> + {% endfor %} + </channel> +</rss>
\ No newline at end of file |