lib/jekyll/assets/plugins/html/favicon.rb
# Frozen-string-literal: true
# Copyright: 2012 - 2020 - ISC License
# Author: Jordon Bedwell
# Encoding: utf-8
require "nokogiri"
module Jekyll
module Assets
class HTML
class Favicon < HTML
content_types "image/x-icon"
# --
def run
Nokogiri::HTML::Builder.with(doc) do |d|
d.link(args.to_h({
html: true, skip: HTML.skips
}))
end
end
end
end
end
end