We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cf0f4c commit b825030Copy full SHA for b825030
generate_exclude.rb
@@ -3,7 +3,7 @@
3
def start_watch(paths)
4
require 'listen'
5
system "Jekyll build"
6
-
+
7
listener = Listen.to(paths) do |modified, added, removed|
8
puts "\n Modified File: #{modified} \n\n Building Jekyll site."
9
File.delete("SlugLog.log") if File.exist?("SlugLog.log")
@@ -45,5 +45,6 @@ def start_watch(paths)
45
else
46
new_config = orig_config.gsub(/exclude: \[[^\]]*\]/, "exclude: " + exclude_text)
47
File.write(config_file, new_config)
48
+ paths_to_include.push("_templates/")
49
start_watch(paths_to_include)
50
end
0 commit comments