Atom feed
This commit is contained in:
parent
220866997f
commit
bb3dd8c4ba
10 changed files with 37 additions and 0 deletions
8
Rules
8
Rules
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue