lib/ext.rb in no-style-please2-plugins-0.7.2 vs lib/ext.rb in no-style-please2-plugins-0.7.3

- old
+ new

@@ -247,17 +247,12 @@ end Jekyll::Hooks.register :site, :after_init do |st| # code to call after Jekyll renders a page - filename = 'index.html' - if !File.file?(filename) - tagTmp = "---\nlayout: paginate\n---" - File.open(filename , 'w+') { |f| f.write(tagTmp) } - print 'generate ' + filename - end + assets = 'assets' if !Dir.exist?(assets) Dir.mkdir(assets) end @@ -266,9 +261,26 @@ puts dynpath if Dir.exist?(dynpath) FileUtils.rm_rf(dynpath) end FileUtils.mkdir(dynpath) + + + filename = 'index.html' + if !File.file?(filename) + tagTmp = "---\nlayout: paginate\n---" + File.open(filename , 'w+') { |f| f.write(tagTmp) } + print 'generate ' + filename + end + + filename = 'HeatMap.md' + if !File.file?(filename) + tagTmp = "---\nlayout: heatmap\n---" + File.open(filename , 'w+') { |f| f.write(tagTmp) } + print 'heatmpa ' + filename + end + + end end \ No newline at end of file