diff --git a/index.js b/index.js index 68c6a297876b392309f76bee373510b51549ef84..6204214cf8f0e670e04ee5aa7788e13232becee1 100755 --- a/index.js +++ b/index.js @@ -111,7 +111,7 @@ var copyStaticFiles = function(builddir, staticdir,themedir) { fsextra.copy( staticdir, builddir, - function(file){ return !(file.match('.git') || file.match('static/articles')); }, + function(file){ return !(file.match('\\.git') || file.match('static/articles')); }, function(){console.log('copy static done');} ); fsextra.copy( diff --git a/sitegin/parseRedirects.js b/sitegin/parseRedirects.js index 352e89b9419b1f4491b86765e844a076a49f74d8..8e651ce88e63407ca65637aa0a101d26cafa2994 100644 --- a/sitegin/parseRedirects.js +++ b/sitegin/parseRedirects.js @@ -11,13 +11,11 @@ var readRedirectWorker = function(content, obj) { throw e; } obj.content = obj.metadata.target; - console.log(obj.file) obj.file = obj.file.split(path.sep).join('/'); if(obj.file.match(/^redirects\/(.*)index\.toml/)) obj.file = obj.file.replace(/^redirects\/(.*)index\.toml/,'$1'); else obj.file = obj.file.replace(/^redirects\/(.*)\.toml/,'$1'); - console.log(obj.file) return obj; }