Commit 30b97eea authored by Kenton Varda's avatar Kenton Varda

Add RSS feed to site (will go live with 0.6 release).

Fixes #196
parent ec794aee
......@@ -5,11 +5,11 @@ This directory contains the "source code" for the Cap'n Proto web site.
The site is built with [Jekyll](http://jekyllrb.com/), which depends on Ruby.
Start by installing ruby1.9.1-dev. On Debian-based operating systems:
sudo apt-get install ruby1.9.1-dev
sudo apt-get install ruby-dev
Then install Jekyll:
sudo gem install jekyll
sudo gem install jekyll pygments.rb
Now install Pygments and SetupTools to be able to install the CapnProto lexer.
On Debian based operating systems:
......@@ -24,7 +24,7 @@ Next, install the custom Pygments syntax highlighter:
Now you can launch a local server:
jekyll serve highlighter --watch
jekyll serve --watch
Edit, test, commit.
......
......@@ -2,3 +2,4 @@ safe: true
permalink: /news/:year-:month-:day-:title.html
baseurl: /next/
is_next: true
highlighter: pygments
......@@ -7,6 +7,7 @@
<meta name="viewport" content="width=480">
<link rel="stylesheet" type="text/css" media="screen" href="{{ site.baseurl }}stylesheets/stylesheet.css">
<link rel="alternate" type="application/rss+xml" title="Cap'n Proto News" href="{{site.baseurl}}feed.xml">
<title>Cap'n Proto: {{ page.title }}</title>
......
---
layout: none
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Cap'n Proto News</title>
<description>Latest updates on Cap'n Proto</description>
<link>https://capnproto.org</link>
<atom:link href="{{ site.baseurl }}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.baseurl }}{{ post.url }}</link>
<guid isPermaLink="true">{{ site.baseurl }}{{ post.url }}</guid>
</item>
{% endfor %}
</channel>
</rss>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment