lib/middleman-alias/extension.rb in middleman-alias-0.0.1 vs lib/middleman-alias/extension.rb in middleman-alias-0.0.2

- old
+ new

@@ -7,16 +7,16 @@ end def manipulate_resource_list(resources) resources.each do |resource| if resource.data["alias"] - redirect = Sitemap::Resource.new(@app.sitemap, resource.data["alias"]).tap do |p| + Sitemap::Resource.new(@app.sitemap, resource.data["alias"]).tap do |p| p.proxy_to("alias.html") p.add_metadata locals: { - destination: resource.destination_path + destination: resource.url } + resources.push p end - resources.push redirect end end resources end