lib/middleman-alias/extension.rb in middleman-alias-0.0.11 vs lib/middleman-alias/extension.rb in middleman-alias-0.0.12
- old
+ new
@@ -14,10 +14,10 @@
alias_url = mm_alias
alias_url += "index.html" if alias_url.match(/\/$/)
existing_resource = resources.select{|r| r.destination_path == alias_url }.first
next if existing_resource
- resources.push Middleman::Sitemap::AliasResource.new(@app.sitemap, alias_url, resource.url)
+ resources.push Middleman::Sitemap::AliasResource.new(@app.sitemap, alias_url, resource)
#Sitemap::Resource.new(@app.sitemap, alias_url).tap do |p|
#p.proxy_to("alias.html")
#p.add_metadata locals: {
#destination: resource.url
#}