module Jekyll::Algolia::FileBrowser

def self.excerpt_raw(file)

error.
the potential Liquid error in the terminal, even if we catch the actual
silence all logger output as Jekyll is quite verbose and will display
This might throw an exception if the excerpt is invalid. We also

file - The Jekyll file

Jekyll. Swallow any error that could occur when reading.
Public: Returns the raw excerpt of a file, directly as returned by
def self.excerpt_raw(file)
  Logger.silent do
    return file.data['excerpt'].to_s
  end
rescue StandardError
  return nil
end