diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-27 23:19:22 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-27 23:19:22 +0200 |
| commit | b94de9fe8c30210469953bbd9880e9cbcc7a3ef5 (patch) | |
| tree | 1cc64d91634bf197fe12fa1c675ab0c92c1877a5 /config | |
| parent | 9a19a0494ef51cdac9a78e24d517ca48ba44c453 (diff) | |
rss: add per-tag Atom feed at /rss/tags/:tag/updates.xml
- rss#tag_updates action: filters Page.heads by tag name, default
locale, 20 items, same caching as updates feed
- tag_updates.xml.builder: Atom feed with CGI.escapeHTML on title
and summary, consistent with updates.xml.builder
- tags/show.html.erb: add subscription link above article list
- routes: two routes per existing pattern (format-less + .:format
constrained to /xml/)
Diffstat (limited to 'config')
| -rw-r--r-- | config/routes.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index 2df9d46..92f2452 100644 --- a/config/routes.rb +++ b/config/routes.rb | |||
| @@ -70,6 +70,9 @@ Cccms::Application.routes.draw do | |||
| 70 | get 'rss/updates.:format', :to => 'rss#updates', :as => :rss_feed, | 70 | get 'rss/updates.:format', :to => 'rss#updates', :as => :rss_feed, |
| 71 | :constraints => { :format => /xml|rdf/ } | 71 | :constraints => { :format => /xml|rdf/ } |
| 72 | get 'rss/recent_changes', :to => 'rss#recent_changes' | 72 | get 'rss/recent_changes', :to => 'rss#recent_changes' |
| 73 | get 'rss/tags/:tag/updates', :to => 'rss#tag_updates', :as => :rss_tag | ||
| 74 | get 'rss/tags/:tag/updates.:format', :to => 'rss#tag_updates', :as => :rss_tag_feed, | ||
| 75 | :constraints => { :format => /xml/ } | ||
| 73 | 76 | ||
| 74 | match 'galleries/*page_path' => 'content#render_gallery', :via => :get | 77 | match 'galleries/*page_path' => 'content#render_gallery', :via => :get |
| 75 | match '/*page_path' => 'content#render_page', :as => :content, :via => :get | 78 | match '/*page_path' => 'content#render_page', :as => :content, :via => :get |
