Class: Middleman::Sitemap::Store

Inherits:
Object
  • Object
show all
Defined in:
lib/middleman/extensions/tumblargh.rb

Instance Method Summary collapse

Instance Method Details

#find_resource_by_destination_path(request_path) ⇒ Object



32
33
34
35
# File 'lib/middleman/extensions/tumblargh.rb', line 32

def find_resource_by_destination_path(request_path)
  request_path = "/index.html" if request_path.match(/^\/post\//)
  orig_find_resource_by_destination_path(request_path)
end

#orig_find_resource_by_destination_pathObject



30
# File 'lib/middleman/extensions/tumblargh.rb', line 30

alias_method :orig_find_resource_by_destination_path, :find_resource_by_destination_path