module Jekyll::Algolia::FileBrowser

def self.excluded_from_hook?(file)

file - The Jekyll file

hook
Public: Check if the file has been excluded by running a custom user
def self.excluded_from_hook?(file)
  Hooks.should_be_excluded?(file.path)
end