Skip to content

Commit

Permalink
move this to production only
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Dec 17, 2024
1 parent 44d1e71 commit f33a3fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _plugins/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f33a3fc

Please sign in to comment.