From 09a2e3754d42908fdc261a6a132debf903b04ceb Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Tue, 22 May 2012 17:13:55 -0500 Subject: [PATCH 1/2] Copydot rake task now includes .nojekyll and .htaccess files. Since some OSes or applications create unimportant hidden files, this only copies hidden files known to be useful for blogging. This closes #303 #348 #419 --- Rakefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 8599f5c..78d124b 100644 --- a/Rakefile +++ b/Rakefile @@ -260,8 +260,11 @@ end desc "copy dot files for deployment" task :copydot, :source, :dest do |t, args| - FileList["#{args.source}/**/.*"].exclude("**/.", "**/..", "**/.DS_Store", "**/._*").each do |file| - cp_r file, file.gsub(/#{args.source}/, "#{args.dest}") unless File.directory?(file) + files = [".htaccess", ".nojekyll"] + Dir["#{args.source}/.*"].each do |file| + if !File.directory?(file) && files.include?(File.basename(file)) + cp(file, file.gsub(/#{args.source}/, "#{args.dest}")); + end end end From 91e26fe4300437c25852b5c35a0caae4562510ff Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Tue, 22 May 2012 17:14:44 -0500 Subject: [PATCH 2/2] Added a .nojekyll file for speedier GitHub pages generation --- .themes/classic/source/.nojekyll | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .themes/classic/source/.nojekyll diff --git a/.themes/classic/source/.nojekyll b/.themes/classic/source/.nojekyll new file mode 100644 index 0000000..e69de29