Show placeholder talks in "next talk" box

This commit is contained in:
Stefan Schlott 2016-11-30 21:45:01 +01:00
parent 5279c954a5
commit 4bc6f6c6af
2 changed files with 5 additions and 3 deletions

View file

@ -1,5 +1,5 @@
def get_events()
items.select { |i| (i[:kind]=='event') && i.identifier.start_with?('/events') }
def get_events(includePlaceholders = false)
items.select { |i| (i[:kind]=='event') && (i.identifier.start_with?('/events') || (includePlaceholders && i.identifier.start_with?('/_data/platzhalter'))) }
end
def generate_event_pages()