Yearly archive: Always create a page for current year

This commit is contained in:
Stefan Schlott 2013-08-26 08:26:14 +02:00
parent 5ad6fafb7a
commit 8afa1e6267
5 changed files with 16 additions and 1 deletions

View file

@ -1,6 +1,7 @@
ErrorDocument 404 /404/index.html
RedirectMatch 301 ^/events/$ /events/<%= Time.now.year %>/
RedirectMatch 301 ^/activities/$ /activities/<%= Time.now.year %>/
RedirectMatch 301 ^/archives/articles/$ /archives/articles/<%= latest_articles(1)[0][:created_at].year %>/
RedirectMatch 301 ^/archives/twitter/$ /archives/twitter/<%= twitter_grouped_by_month.keys.sort.last %>/