Update preprocess.rb
This commit is contained in:
parent
3db90bca18
commit
9e3fe463ea
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ module PreprocessHelper
|
||||||
@items.delete_if do |item|
|
@items.delete_if do |item|
|
||||||
next unless item.identifier.match?(%r{^/#{path}/})
|
next unless item.identifier.match?(%r{^/#{path}/})
|
||||||
year = item.identifier.to_s.match(%r{/(\d\d-\d\d)/})[1]
|
year = item.identifier.to_s.match(%r{/(\d\d-\d\d)/})[1]
|
||||||
not latest_years.include?(year)
|
!latest_years.include?(year)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue