Sha256: 959f10e30c1578f3ad14f7ad673494b0d574609fd1f541fd8cdd6aa753b5ef43

Contents?: true

Size: 451 Bytes

Versions: 4

Compression:

Stored size: 451 Bytes

Contents

# frozen_string_literal: true

require "jekyll/hooks"

Jekyll::Hooks.register :site, :after_init do |site|
  static_files = Jekyll::Favicon.assets(site)
    .uniq(&:path)
  excludes = site.config["exclude"]
  static_files.each do |static_file|
    source = static_file.source_relative_path
    excludes << source and next if static_file.generable?

    Jekyll.logger.warn Jekyll::Favicon,
      "Missing #{source}, not generating favicons."
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jekyll-favicon-1.1.0 lib/jekyll/favicon/hooks.rb
jekyll-favicon-1.0.0 lib/jekyll/favicon/hooks.rb
jekyll-favicon-1.0.0.pre.3 lib/jekyll/favicon/hooks.rb
jekyll-favicon-1.0.0.pre.2 lib/jekyll/favicon/hooks.rb