Merge remote-tracking branch 'origin/3.0-stable'
This commit is contained in:
commit
51a494b343
2 changed files with 2 additions and 1 deletions
|
@ -70,6 +70,7 @@ module Middleman
|
|||
# Get the resource object for the current path
|
||||
# @return [Middleman::Sitemap::Resource]
|
||||
def current_resource
|
||||
return nil unless current_path
|
||||
sitemap.find_resource_by_destination_path(current_path)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue