Sha256: 28c9ecf75572922d67497a9afd928d6bdd3a44d8196f72f860c73ad14f35fb26

Contents?: true

Size: 787 Bytes

Versions: 2

Compression:

Stored size: 787 Bytes

Contents

# Frozen-string-literal: true
# Encoding: utf-8

require 'jekyll'

require_relative 'jekyll/language_reader.rb'
require_relative 'jekyll/language_properties.rb'
require_relative 'jekyll/language_page.rb'
require_relative 'jekyll/language_document.rb'
require_relative 'jekyll/readers/language_collection_reader.rb'
require_relative 'jekyll/readers/language_page_reader.rb'
require_relative 'jekyll/readers/language_post_reader.rb'
require_relative 'jekyll/patches'
require_relative 'jekyll/language-plugin'

Jekyll::Hooks.register :site, :after_reset do |site|
  # replace Jekyll::Reader with Jekyll::LanguageReader extension
  site.reader = Jekyll::LanguageReader.new(site)

  # create new language data instance
  site.languageData = Jekyll::LanguagePlugin::LanguageData.new(site)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-language-plugin-1.3.1 lib/jekyll-language-plugin.rb
jekyll-language-plugin-1.3.0 lib/jekyll-language-plugin.rb