Follow "Deprecation: posts.+ should be changed toposts.docs.+." warning.

This commit is contained in:
Davit Barbakadze
2016-09-26 14:40:10 +04:00
parent 2ccdc96923
commit 12eb5dc087
+1 -1
View File
@@ -7,7 +7,7 @@ module Jekyll
reg = context.registers
site = reg[:site]
if reg[:page_hash].nil?
reg[:page_hash] = Hash[ (site.posts + site.pages).collect {
reg[:page_hash] = Hash[ (site.posts.docs + site.pages).collect {
|x| [x.url.sub(TrailingIndex, ''), x]}]
end
return reg[:page_hash]