diff options
-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 |