From 1f259be206e8be15e25547ea4881f0933e219bed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20D=C3=B6ring?= Date: Mon, 6 Jun 2011 12:40:14 +0200 Subject: [PATCH] fix for #58 --- lib/middleman/builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/middleman/builder.rb b/lib/middleman/builder.rb index 46306a50..c2b77f9b 100644 --- a/lib/middleman/builder.rb +++ b/lib/middleman/builder.rb @@ -93,7 +93,7 @@ module Middleman next if file_source.include?('layout') # Skip partials prefixed with an underscore - next unless file_source.split('/').select { |p| p[0,1] == '_' }.empty? + next unless file_source.gsub(Middleman::Server.root, '').split('/').select { |p| p[0,1] == '_' }.empty? file_extension = File.extname(file_source) file_destination = File.join(given_destination, file_source.gsub(source, '.'))