The library for web and native user interfaces.
[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`)
Paul Shen committed
Jun 3, 2013 at 11:02 UTC
b353e8a8074213e4214aee61cb9097ecb3c777b7
3 files changed
+24
docs/_config.yml
+2
@@ -1,6 +1,7 @@
1
---
2
markdown: redcarpet
3
name: React
4
+description: A JavaScript library for building user interfaces
5
redcarpet:
6
extensions:
7
- fenced_code_blocks
@@ -11,4 +12,5 @@ exclude:
12
- Gemfile.lock
13
- README.md
14
- Rakefile
15
+url: http://facebook.github.io
16
baseurl: /react
docs/_layouts/default.html
+1
@@ -12,6 +12,7 @@
12
<meta property="og:description" content="A JavaScript library for building user interfaces" />
13
14
<link rel="shortcut icon" href="/react/favicon.ico">
15
+ <link rel="alternate" type="application/rss+xml" title="{{ site.name }}" href="{{ site.url }}{{ site.baseurl }}/feed.xml">
16
17
<link rel="stylesheet" href="/react/css/react.css">
18
<link rel="stylesheet" href="/react/css/syntax.css">
docs/feed.xml
new
+21
@@ -0,0 +1,21 @@
1
+---
2
+layout: none
3
+---
4
+<?xml version="1.0" encoding="UTF-8"?>
5
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
6
+ <channel>
7
+ <title>{{ site.name }}</title>
8
+ <description>{{ site.description }}</description>
9
+ <link>{{ site.url }}{{ site.baseurl }}</link>
10
+ <atom:link href="{{ site.url }}{{ site.baseurl }}/feed.xml" rel="self" type="application/rss+xml" />
11
+ {% for post in site.posts limit:10 %}
12
+ <item>
13
+ <title>{{ post.title }}</title>
14
+ <description>{{ post.content | xml_escape }}</description>
15
+ <pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
16
+ <link>{{ site.url }}{{ site.baseurl }}{{ post.url }}</link>
17
+ <guid isPermaLink="true">{{ site.url }}{{ site.baseurl }}{{ post.url }}</guid>
18
+ </item>
19
+ {% endfor %}
20
+ </channel>
21
+</rss>