RSS feed option added
This commit is contained in:
parent
826df31380
commit
6db3f0bcca
|
@ -31,7 +31,7 @@ footer-links:
|
||||||
instagram:
|
instagram:
|
||||||
linkedin:
|
linkedin:
|
||||||
pinterest:
|
pinterest:
|
||||||
rss:
|
rss: # for rss, add the entire URL of our site, e.g. http://www.barryclark.co
|
||||||
twitter: your-username
|
twitter: your-username
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
21
feed.xml
Normal file
21
feed.xml
Normal file
|
@ -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>
|
Loading…
Reference in a new issue