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
|
# Get the page object for the current path
|
||||||
# @return [Middleman::Sitemap::Page]
|
# @return [Middleman::Sitemap::Page]
|
||||||
def current_page
|
def current_page
|
||||||
sitemap.page(current_path)
|
sitemap.page_by_destination(current_path)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Ignore a path, regex or callback
|
# Ignore a path, regex or callback
|
||||||
|
|
Loading…
Reference in a new issue