diff --git a/_plugins/api.rb b/_plugins/api.rb index 9b1d41d3c5ed3d..597b5a066c2372 100644 --- a/_plugins/api.rb +++ b/_plugins/api.rb @@ -279,7 +279,9 @@ def generate(site) Jekyll::Hooks.register :site, :post_read do |site| - Gtn::Hooks.by_tool(site) + if Jekyll.env == 'production' + Gtn::Hooks.by_tool(site) + end end # Basically like `PageWithoutAFile`, we just write out the ones we'd created earlier.