Sha256: 76c781a207430e2b3812ca3b474e6bb37be09d1a525b1ff62172b40dbc4b9ec1

Contents?: true

Size: 370 Bytes

Versions: 3

Compression:

Stored size: 370 Bytes

Contents

Jekyll::Hooks.register :site, :after_init do |site|
  Jekyll::Favicon.merge site.config['favicon']
  site.config['exclude'] << Jekyll::Favicon.config['source']
end

Jekyll::Hooks.register :site, :post_write do |site|
  favicon_generators = site.generators.select do |generator|
    generator.is_a? Jekyll::Favicon::Generator
  end
  favicon_generators.each(&:clean)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jekyll-favicon-0.2.4 lib/jekyll/favicon/hooks.rb
jekyll-favicon-0.2.3 lib/jekyll/favicon/hooks.rb
jekyll-favicon-0.2.2 lib/jekyll/favicon/hooks.rb