1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-22 09:54:24 +04:00
Files
tabler/pages/_plugins/jekyll-tmp.rb
2019-12-15 16:51:12 +01:00

9 lines
184 B
Ruby

Jekyll::Hooks.register :site, :post_read do |site|
if Jekyll.env == 'production'
site.pages.delete_if do |page|
if page.data['tmp']
true
end
end
end
end