Sha256: d0161d2da01b8eb8a5c83028d0f2822ca91ce5d6e3ea360c151d07d2bc6deff5

Contents?: true

Size: 797 Bytes

Versions: 26

Compression:

Stored size: 797 Bytes

Contents

# frozen_string_literal: true

require "jekyll"

require_relative "cloudcannon-jekyll/page-without-a-file"
require_relative "cloudcannon-jekyll/generator"
require_relative "cloudcannon-jekyll/configuration"
require_relative "cloudcannon-jekyll/jsonify-filter"
require_relative "cloudcannon-jekyll/version"

Liquid::Template.register_filter(CloudCannonJekyll::JsonifyFilter)

if Jekyll::VERSION.start_with? "2."
  module Jekyll
    # Hooks didn't exist in Jekyll 2 so we monkey patch to get an :after_reset hook
    class Site
      alias_method :jekyll_reset, :reset

      def reset
        jekyll_reset
        CloudCannonJekyll::Configuration.set(self)
      end
    end
  end
else
  Jekyll::Hooks.register :site, :after_reset do |site|
    CloudCannonJekyll::Configuration.set(site)
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
cloudcannon-jekyll-2.3.4 lib/cloudcannon-jekyll.rb
cloudcannon-jekyll-2.3.3 lib/cloudcannon-jekyll.rb
cloudcannon-jekyll-2.3.2 lib/cloudcannon-jekyll.rb
cloudcannon-jekyll-2.3.1 lib/cloudcannon-jekyll.rb
cloudcannon-jekyll-2.3.0 lib/cloudcannon-jekyll.rb
cloudcannon-jekyll-2.2.0 lib/cloudcannon-jekyll.rb
cloudcannon-jekyll-2.1.0 lib/cloudcannon-jekyll.rb
cloudcannon-jekyll-2.0.2 lib/cloudcannon-jekyll.rb
cloudcannon-jekyll-2.0.1 lib/cloudcannon-jekyll.rb
cloudcannon-jekyll-0.5.0 lib/cloudcannon-jekyll.rb
cloudcannon-jekyll-2.0.0 lib/cloudcannon-jekyll.rb
cloudcannon-jekyll-1.6.1 lib/cloudcannon-jekyll.rb
cloudcannon-jekyll-0.4.0 lib/cloudcannon-jekyll.rb
cloudcannon-jekyll-1.6.0 lib/cloudcannon-jekyll.rb
cloudcannon-jekyll-1.5.7 lib/cloudcannon-jekyll.rb
cloudcannon-jekyll-1.5.6 lib/cloudcannon-jekyll.rb
cloudcannon-jekyll-1.5.5 lib/cloudcannon-jekyll.rb
cloudcannon-jekyll-0.3.4 lib/cloudcannon-jekyll.rb
cloudcannon-jekyll-1.5.4 lib/cloudcannon-jekyll.rb
cloudcannon-jekyll-0.3.3 lib/cloudcannon-jekyll.rb