Sha256: 44555d29f0fdba6cfb07cfd136950155d9760a8089062270a71fac0bde52f55b

Contents?: true

Size: 464 Bytes

Versions: 3

Compression:

Stored size: 464 Bytes

Contents

# Frozen-string-literal: true
# Copyright: 2012 - 2017 - MIT License
# Encoding: utf-8

require "jekyll/assets"
require "nokogiri"

module Jekyll
  module Assets
    class HTML
      class Component < HTML
        content_types "text/html"

        # --
        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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jekyll-assets-3.0.5 lib/jekyll/assets/plugins/html/component.rb
jekyll-assets-3.0.4 lib/jekyll/assets/plugins/html/component.rb
jekyll-assets-3.0.3 lib/jekyll/assets/plugins/html/component.rb