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