Fix current_page
This commit is contained in:
parent
efe1d45af7
commit
4830f51664
|
@ -64,7 +64,7 @@ module Middleman::CoreExtensions::Sitemap
|
|||
# Get the page object for the current path
|
||||
# @return [Middleman::Sitemap::Page]
|
||||
def current_page
|
||||
sitemap.page(current_path)
|
||||
sitemap.page_by_destination(current_path)
|
||||
end
|
||||
|
||||
# Ignore a path, regex or callback
|
||||
|
|
Loading…
Reference in a new issue