Allow numbers to be unique page_ids (#1886)

feature/pipeline
Thomas Bruketta 2016-04-25 09:51:11 -07:00 committed by Thomas Reynolds
parent 8a8ee768ac
commit 4918704800
1 changed files with 1 additions and 1 deletions

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