module Jekyll::Algolia::FileBrowser

def self.indexable?(file)

all the static assets, only keep the actual content.
There are many reasons a file should not be indexed. We need to exclude

file - The Jekyll file

Public: Check if the file should be indexed
def self.indexable?(file)
  return false if static_file?(file)
  return false if is_404?(file)
  return false unless allowed_extension?(file)
  return false if excluded_from_config?(file)
  return false if excluded_from_hook?(file)
  true
end