Sha256: d3f14bb0dd2f1f7544cc9f7f6fa2007f6d84837b2096beb0364532c5d2b7be35
Contents?: true
Size: 792 Bytes
Versions: 6
Compression:
Stored size: 792 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) # Hooks didn't exist in Jekyll 2 so we monkey patch to get an :after_reset hook if Jekyll::VERSION.start_with? "2" module Jekyll 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
6 entries across 6 versions & 1 rubygems