Atom feed

This commit is contained in:
Stefan Schlott 2013-08-24 15:42:27 +02:00
parent 220866997f
commit bb3dd8c4ba
10 changed files with 37 additions and 0 deletions

8
Rules
View file

@ -25,6 +25,10 @@ compile "/htaccess" do
filter :erb
end
compile /(rss|atom)/ do
filter :erb
end
compile '*' do
item_name = if item.identifier=="/"
""
@ -66,6 +70,10 @@ route "/htaccess" do
"/.htaccess"
end
route '/(atom|rss)/' do
item.identifier.chop + '.xml'
end
route '/articles/*' do
# Find corresponding article (for getting metadata)
articleitem = article_base_item(item)