Skip to content

Instantly share code, notes, and snippets.

@searls
Created August 7, 2018 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save searls/baf47cc5bf312b2eb27ea16a99c06beb to your computer and use it in GitHub Desktop.
Save searls/baf47cc5bf312b2eb27ea16a99c06beb to your computer and use it in GitHub Desktop.
Stick this in your _plugins
module Jekyll
module PryFilter
# Usage: {{ site | pry }} to debug the state of the site from the terminal
def pry(input)
require 'pry'
binding.pry
end
end
end
Liquid::Template.register_filter(Jekyll::PryFilter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment