jekyll-tmp.rb 185 B

123456789
  1. Jekyll::Hooks.register :site, :post_read do |site|
  2. if Jekyll.env != 'development'
  3. site.pages.delete_if do |page|
  4. if page.data['tmp']
  5. true
  6. end
  7. end
  8. end
  9. end