Allow numbers to be unique page_ids (#1886)

This commit is contained in:
Thomas Bruketta 2016-04-25 09:51:11 -07:00 committed by Thomas Reynolds
parent 8a8ee768ac
commit 4918704800

View file

@ -85,7 +85,7 @@ module Middleman
file_descriptor && file_descriptor[:full_path].to_s
end
Contract Or[Symbol, String]
Contract Or[Symbol, String, Fixnum]
def page_id
metadata[:page][:id] || destination_path
end