Generate event archive

This commit is contained in:
Stefan Schlott 2013-08-25 13:10:05 +02:00
parent a18e920e2b
commit c8c5bde4f4
3 changed files with 18 additions and 1 deletions

5
lib/eventhelpers.rb Normal file
View file

@ -0,0 +1,5 @@
def generate_event_pages()
articles = items.select { |i| i[:kind] == 'event' }
generate_yearly_archive(articles, :startdate, '/events', 'Veranstaltungen', 'event_archive')
end