lib/ext.rb in no-style-please2-plugins-0.5.1 vs lib/ext.rb in no-style-please2-plugins-0.6.0

- old
+ new

@@ -240,6 +240,17 @@ 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 + end + end \ No newline at end of file