Point feeds at FeedBurner

This commit is contained in:
Wesley Moore 2010-04-01 18:24:05 +11:00
parent a5b823667c
commit c2b76e07f6
9 changed files with 14 additions and 11 deletions

3
Rules
View file

@ -44,8 +44,7 @@ route '*/json/' do
end
route %r{.*/feed/} do
path = Pathname(item.identifier)
path.cleanpath.to_s + '.xml'
item.identifier + 'index.xml'
end
route '/robots/' do

View file

@ -14,7 +14,7 @@ This site is written in [Markdown][markdown], generated using [nanoc][nanoc], en
<a href="http://manage.crucialp.com/aff.php?aff=261" class="affiliate">Crucial Paradigm</a> VPS
running [Debian GNU/Linux][debian] and [nginx][nginx].
The content is split into two primary sections: [Technical](/technical/articles/) and [Personal](/personal/articles/). There is a [combined feed](http://localhost:3000/feed.xml) containing all posts as well as separate ones for [technical](/technical/feed.xml) and [personal](/personal/feed.xml) posts.
The content is split into two primary sections: [Technical](/technical/articles/) and [Personal](/personal/articles/). There is a [combined feed](http://feeds.feedburner.com/wezm) containing all posts as well as separate ones for [technical](http://feeds.feedburner.com/wezm-technical) and [personal](http://feeds.feedburner.com/wezm-personal) posts.
Projects
--------

View file

@ -4,3 +4,4 @@ author_name: Wesley Moore
author_uri: http://www.wezm.net/about/
#feed_url: http://feeds.feedburner.com/wezm/
is_hidden: true
feed_url: http://feeds.feedburner.com/wezm

View file

@ -3,3 +3,4 @@ title: WezM.net - Personal Articles
author_name: Wesley Moore
author_uri: http://www.wezm.net/about/
is_hidden: true
feed_url: http://feeds.feedburner.com/wezm-personal

View file

@ -3,3 +3,4 @@ title: WezM.net - Technical Articles
author_name: Wesley Moore
author_uri: http://www.wezm.net/about/
is_hidden: true
feed_url: http://feeds.feedburner.com/wezm-technical

View file

@ -4,6 +4,6 @@
<link rel="stylesheet" href="/css/reset.css" type="text/css" media="screen,projection" />
<link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen,projection" />
<link rel="stylesheet" href="/css/mobile.css" type="text/css" media="only screen and (max-device-width: 480px)" />
<link rel="alternate" href="/feed.xml" type="application/atom+xml" title="WezM.net - All Articles" />
<link rel="alternate" href="/technical/feed.xml" type="application/atom+xml" title="WezM.net - Technical Articles" />
<link rel="alternate" href="/personal/feed.xml" type="application/atom+xml" title="WezM.net - Personal Articles" />
<link rel="alternate" href="http://feeds.feedburner.com/wezm" type="application/atom+xml" title="WezM.net - All Articles" />
<link rel="alternate" href="http://feeds.feedburner.com/wezm-technical" type="application/atom+xml" title="WezM.net - Technical Articles" />
<link rel="alternate" href="http://feeds.feedburner.com/wezm-personal" type="application/atom+xml" title="WezM.net - Personal Articles" />

View file

@ -5,8 +5,8 @@
<li><a href="/about/">About</a></li>
<li><a href="/projects/">Projects</a></li>
<li>
<a href="/feed.xml"><img src="/images/white-feed-icon.png" width="12" height="12" alt="White Feed Icon" /></a>
<a href="/feed.xml">Feed</a>
<a href="http://feeds.feedburner.com/wezm"><img src="/images/white-feed-icon.png" width="12" height="12" alt="White Feed Icon" /></a>
<a href="http://feeds.feedburner.com/wezm">Feed</a>
</li>
</ul>
<a href="/">WezM<sup>.net</sup></a>

View file

@ -40,7 +40,8 @@
<% menu.each do |menu_item|
label, count = menu_item
path = (label != "All" ? '/' + label.downcase : '') + "/articles/"
feed = (label != "All" ? '/' + label.downcase : '') + "/feed.xml"
feed = 'http://feeds.feedburner.com/wezm'
feed += "-#{label.downcase}" if label != "All"
active = (@item.identifier.sub(%r{page/$}, '') == path)
%>
<li>

View file

@ -14,7 +14,7 @@
<div id="technical" class="column">
<div>
<h1><a href="/technical/articles/">Technical</a>
<sup><a href="/technical/feed.xml"><img src="/images/black-feed-icon.png" width="12" height="12" alt="Black Feed Icon" /></a></sup>
<sup><a href="http://feeds.feedburner.com/wezm-technical"><img src="/images/black-feed-icon.png" width="12" height="12" alt="Black Feed Icon" /></a></sup>
</h1>
<ul class="articles">
<% technical_articles[0..4].each do |article| %>
@ -28,7 +28,7 @@
<div id="personal" class="column">
<div>
<h1><a href="/personal/articles/">Personal</a>
<sup><a href="/personal/feed.xml"><img src="/images/black-feed-icon.png" width="12" height="12" /></a></sup>
<sup><a href="http://feeds.feedburner.com/wezm-personal"><img src="/images/black-feed-icon.png" width="12" height="12" /></a></sup>
</h1>
<ul class="articles">
<% personal_articles[0..4].each do |article| %>