Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MarlinFirmware/MarlinDocumentation.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Brázio <jbrazio@gmail.com>2016-07-01 01:48:16 +0300
committerJoão Brázio <jbrazio@gmail.com>2016-07-01 03:46:27 +0300
commit0a9cfeb99edd0b9a654b964083be8c186427c9bf (patch)
tree01e60ab52d0551dc2124d319ad224f4de79b985e /_plugins
parent67ce752d8bdc77b71bd3e099e7c7bc4b1dd2aa56 (diff)
Simplified _config.yml and introduced a html compressor
Diffstat (limited to '_plugins')
-rw-r--r--_plugins/jekyll-press.rb-disabled (renamed from _plugins/jekyll-press.rb_)5
1 files changed, 3 insertions, 2 deletions
diff --git a/_plugins/jekyll-press.rb_ b/_plugins/jekyll-press.rb-disabled
index c757d9dc..7575b195 100644
--- a/_plugins/jekyll-press.rb_
+++ b/_plugins/jekyll-press.rb-disabled
@@ -66,7 +66,9 @@ module Jekyll
def write(dest)
dest_path = destination(dest)
- output_html(dest_path, output)
+ if (File.extname(dest_path) == '.html')
+ output_html(dest_path, output)
+ end
end
end
@@ -93,7 +95,6 @@ module Jekyll
def write(dest)
dest_path = destination(dest)
-
return false if File.exist?(dest_path) and !modified?
@@mtimes[path] = mtime