Fix current_page

This commit is contained in:
Ben Hollis 2012-03-04 22:56:07 -08:00
parent efe1d45af7
commit 4830f51664

View file

@ -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