module Jekyll::Algolia::FileBrowser

def self.excerpt_text(file)

Only collections (including posts) have an excerpt. Pages don't.

file - The Jekyll file

Public: Returns the text version of the excerpt
def self.excerpt_text(file)
  html = excerpt_html(file)
  Utils.html_to_text(html)
end