module Jekyll::Algolia::FileBrowser
def self.allowed_extension?(file)
and raw HTML files but this list can be extended using the
can convert many more file formats. By default we'll only index markdown
Jekyll can transform markdown files to HTML by default. With plugins, it
file - The Jekyll file
Public: Check if the file has one of the allowed extensions
def self.allowed_extension?(file) extensions = Configurator.algolia('extensions_to_index') extname = File.extname(file.path)[1..-1] extensions.include?(extname) end