Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mostly this change is so the URL can be pretty, now it'll display at http://yoursite.com/feed and will work when minifying the site compared to when it was at /feed/.
- Loading branch information
Showing
4 changed files
with
35 additions
and
42 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
layout: null | ||
regenerate: true | ||
permalink: /feed | ||
--- | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<rss | ||
xmlns:dc="http://purl.org/dc/elements/1.1/" | ||
xmlns:content="http://purl.org/rss/1.0/modules/content/" | ||
xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"> | ||
<channel> | ||
<title><![CDATA[{{ site.title }}]]></title> | ||
<description><![CDATA[{{ site.description }}]]></description> | ||
<link>{{ site.url }}</link> | ||
<generator>Jekyll</generator> | ||
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate> | ||
<atom:link href="{{ site.url }}/feed/" rel="self" type="application/rss+xml"/> | ||
{% for post in site.posts limit:10 %} | ||
<item> | ||
<title><![CDATA[{{ post.title }}]]></title> | ||
{% if post.excerpt %} | ||
<description><![CDATA[{{ post.excerpt }}]]></description> | ||
{% else %} | ||
<description><![CDATA[{{ post.content }}]]></description> | ||
{% endif %} | ||
<dc:creator><![CDATA[{{ site.author.name }}]]></dc:creator> | ||
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate> | ||
<link>{{ site.url }}{{ post.url }}</link> | ||
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid> | ||
</item> | ||
{% endfor %} | ||
</channel> | ||
</rss> |
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