Correct selection

This commit is contained in:
Stefan Schlott 2013-08-25 13:43:45 +02:00
parent 1158d39c57
commit 5dad6d53a1

View file

@ -1,5 +1,9 @@
def get_events()
items.select { |i| (i[:kind]=='event') && i.identifier.start_with?('/events') }
end
def generate_event_pages()
articles = items.select { |i| i[:kind] == 'event' }
articles = get_events()
generate_yearly_archive(articles, :startdate, '/events', 'Veranstaltungen des CCC Stuttgart', 'event_archive')
end