Allow numbers to be unique page_ids (#1886)
This commit is contained in:
parent
8a8ee768ac
commit
4918704800
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ module Middleman
|
||||||
file_descriptor && file_descriptor[:full_path].to_s
|
file_descriptor && file_descriptor[:full_path].to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
Contract Or[Symbol, String]
|
Contract Or[Symbol, String, Fixnum]
|
||||||
def page_id
|
def page_id
|
||||||
metadata[:page][:id] || destination_path
|
metadata[:page][:id] || destination_path
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue