forked from facebook/react
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Add RSS feed.xml for blog posts
uses `feed.xml` from https://github.com/snaptortoise/jekyll-rss-feeds (slightly modified for `site.url` + `site.baseurl`)
- Loading branch information
Paul Shen
committed
Jun 3, 2013
1 parent
9425e58
commit b353e8a
Showing
3 changed files
with
24 additions
and
0 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 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 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,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 }}</title> | ||
<description>{{ site.description }}</description> | ||
<link>{{ site.url }}{{ site.baseurl }}</link> | ||
<atom:link href="{{ site.url }}{{ site.baseurl }}/feed.xml" rel="self" type="application/rss+xml" /> | ||
{% for post in site.posts limit:10 %} | ||
<item> | ||
<title>{{ post.title }}</title> | ||
<description>{{ post.content | xml_escape }}</description> | ||
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate> | ||
<link>{{ site.url }}{{ site.baseurl }}{{ post.url }}</link> | ||
<guid isPermaLink="true">{{ site.url }}{{ site.baseurl }}{{ post.url }}</guid> | ||
</item> | ||
{% endfor %} | ||
</channel> | ||
</rss> |