Fix mail_to

This commit is contained in:
Ben Hollis 2012-12-30 15:55:46 -08:00
parent 377aa41a23
commit 028c3ec480

View file

@ -133,8 +133,8 @@ module Middleman
uri = URI(url) uri = URI(url)
url_path = uri.path url_path = uri.path
if url_path
path = Pathname(url_path) path = Pathname(url_path)
url_path = current_source_dir.join(path).to_s if path.relative? url_path = current_source_dir.join(path).to_s if path.relative?
resource = sitemap.find_resource_by_path(url_path) resource = sitemap.find_resource_by_path(url_path)
@ -170,6 +170,7 @@ module Middleman
end end
end end
end end
end
super(*args, &block) super(*args, &block)
end end