Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added cleanup config

  • Loading branch information...
commit 774d9821f2f23f63fbe7cd89078a35b1f9eee054 1 parent 4499df8
@JangoSteve authored
Showing with 5 additions and 2 deletions.
  1. +1 −0  lib/jekyll.rb
  2. +4 −2 lib/jekyll/site.rb
View
1  lib/jekyll.rb
@@ -66,6 +66,7 @@ module Jekyll
'markdown' => 'maruku',
'permalink' => 'date',
'include' => ['.htaccess'],
+ 'cleanup_dest' => true,
'markdown_ext' => 'markdown,mkd,mkdn,md',
'textile_ext' => 'textile',
View
6 lib/jekyll/site.rb
@@ -5,7 +5,8 @@ module Jekyll
class Site
attr_accessor :config, :layouts, :posts, :pages, :static_files,
:categories, :exclude, :include, :source, :dest, :lsi, :pygments,
- :permalink_style, :tags, :time, :future, :safe, :plugins, :limit_posts
+ :permalink_style, :tags, :time, :future, :safe, :plugins, :limit_posts,
+ :cleanup_dest
attr_accessor :converters, :generators
@@ -26,6 +27,7 @@ def initialize(config)
self.include = config['include'] || []
self.future = config['future']
self.limit_posts = config['limit_posts'] || nil
+ self.cleanup_dest = config['cleanup_dest']
self.reset
self.setup
@@ -39,7 +41,7 @@ def process
self.read
self.generate
self.render
- self.cleanup
+ self.cleanup if self.cleanup_dest
self.write
end
Please sign in to comment.
Something went wrong with that request. Please try again.