diff options
-rw-r--r-- | site/blog/feed.xml | 20 | ||||
-rw-r--r-- | site/blog/index.md | 2 |
2 files changed, 22 insertions, 0 deletions
diff --git a/site/blog/feed.xml b/site/blog/feed.xml new file mode 100644 index 0000000000..62f2dc7479 --- /dev/null +++ b/site/blog/feed.xml @@ -0,0 +1,20 @@ +--- +--- +<?xml version="1.0" encoding="UTF-8" ?> +<rss version="2.0"> + +<channel> + <title>Bazel Blog</title> + <link>http://bazel.io</link> + <description>Fast, correct builds.</description> + {% for post in site.categories.blog limit:10 %} + <item> + <title>{{ post.title }}</title> + <link>{{ post.url }}</link> + <description>{{ post.content }}</description> + <pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate> + </item> + {% endfor %} +</channel> + +</rss> diff --git a/site/blog/index.md b/site/blog/index.md index d4d77e17fc..865a8f7b97 100644 --- a/site/blog/index.md +++ b/site/blog/index.md @@ -13,3 +13,5 @@ _{{ post.date | date_to_long_string }}_ {{ post.content }} {% endfor %} + +[Subscribe](feed.xml) |