mirror of
https://github.com/netz39/www.netz39.de.git
synced 2025-01-18 20:10:12 +01:00
skip events older than 356 days
This commit is contained in:
parent
ab7f4841d0
commit
734dc1798f
1 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,9 @@ module Jekyll
|
|||
organizer = event.data.dig('event', 'organizer') || default_organizer
|
||||
location = event.data.dig('event', 'location') || default_location
|
||||
|
||||
# Skip events older than 365 days
|
||||
next if start_date.to_date < (Date.today - 365)
|
||||
|
||||
# Remove image URLs from description
|
||||
content = event.content
|
||||
content.gsub!(/\!\[.*?\]\((.*?)\)/, '')
|
||||
|
|
Loading…
Reference in a new issue