Update preprocess.rb

This commit is contained in:
lorin 2018-07-15 19:20:36 +02:00 committed by Wout Schellaert
parent 3db90bca18
commit 9e3fe463ea

View file

@ -27,7 +27,7 @@ module PreprocessHelper
@items.delete_if do |item|
next unless item.identifier.match?(%r{^/#{path}/})
year = item.identifier.to_s.match(%r{/(\d\d-\d\d)/})[1]
not latest_years.include?(year)
!latest_years.include?(year)
end
end
end