Sha256: f8000c26d1babc2bc937c5948e3c1d3a9b05678295ca0ecedabdc2931d3557fe

Contents?: true

Size: 464 Bytes

Versions: 7

Compression:

Stored size: 464 Bytes

Contents

# Frozen-string-literal: true
# Copyright: 2012 - 2018 - 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

7 entries across 7 versions & 1 rubygems

Version Path
jekyll-assets-3.0.12 lib/jekyll/assets/plugins/html/component.rb
jekyll-assets-3.0.11 lib/jekyll/assets/plugins/html/component.rb
jekyll-assets-3.0.10 lib/jekyll/assets/plugins/html/component.rb
jekyll-assets-3.0.9 lib/jekyll/assets/plugins/html/component.rb
jekyll-assets-3.0.8 lib/jekyll/assets/plugins/html/component.rb
jekyll-assets-3.0.7 lib/jekyll/assets/plugins/html/component.rb
jekyll-assets-3.0.6 lib/jekyll/assets/plugins/html/component.rb