module Jekyll::Algolia::FileBrowser

def self.redirect?(file)

https://github.com/jekyll/jekyll-redirect-from
an HTML meta refresh. We need to exclude those files from indexing.
Plugins like jekyll-redirect-from add dynamic pages that only contain

file - The Jekyll file

Public: Check if the file is redirect page
def self.redirect?(file)
  file.respond_to?(:name) && file.name == 'redirect.html'
end