jekyll-link-decorator 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll-link-decorator.rb +3 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85f578a55d98076ae39a47427c191f790d9f7a804b095849d39897db778a86e7
4
- data.tar.gz: 023bfd45a25c076a0b7fe8bc632195fc8e85d60d983e63cfb2c50abbd2c9c807
3
+ metadata.gz: 58e0cbaffc8dddaa356b97b7f9523197377c98862ec3398cef26b7436b69d8d1
4
+ data.tar.gz: 5fab208572e92de8982ed60159799b02b729f196a54ba5f0465c86dee212275a
5
5
  SHA512:
6
- metadata.gz: c32eecd6e74d8ab46a664268c0371f63401ff9c94f40b10984f04fbd0b211e44d6e2f375f3f3cabaceeceda17b4ac4f009666ae472f62e3163a7664caeb6b4b1
7
- data.tar.gz: b9b1c79b09cb02402fd89740829de88077b59a649936c0e11c4b2034ed0b067e7ae8da6f8bc5e9469af813ac37b2882364e463477e77d46c366869652b15ef4a
6
+ metadata.gz: fa74e76b3aed60bd4be998dd4b227268323aabae2f00ec67d718ec71c2b04f85bb356bdea7ac8622b6d4caabbc778cff534d2796dbd06bd55989611db4760ca7
7
+ data.tar.gz: 233d5cde8f2bfdf617b595a2783633e37d4b3794ba3ccfd8b8e838f8c4906348c4a8cd8979f78ea543861ab648633f004bc81c18aa7b44f6cec3170585d75c4d
@@ -52,7 +52,7 @@
52
52
  #
53
53
  # * `with_heading_anchor_data`: A dictionary containing optional configuration keys:
54
54
  # - `icon`: Font Awesome icon classes (default: "fa-solid fa-link")
55
- # - `icon_size`: Font Awesome size modifier appended after icon classes (default: "fa-xs")
55
+ # - `icon_size`: Font Awesome size modifier appended after icon classes (optional)
56
56
  # - `copy_success_message`: Feedback text after copying (consumed by heading-anchor.js,
57
57
  # default: "Copied!")
58
58
  # - `reset_delay`: Milliseconds before the icon resets (consumed by heading-anchor.js,
@@ -76,7 +76,6 @@
76
76
  # with_heading_anchor: true
77
77
  # with_heading_anchor_data:
78
78
  # icon: "fa-solid fa-link"
79
- # icon_size: "fa-xs"
80
79
  # copy_success_message: "Copied!"
81
80
  # reset_delay: 2000
82
81
  # ```
@@ -105,7 +104,6 @@ module Jekyll
105
104
  DEFAULT_EXTERNAL_LINK_ICON_EXCLUDED_TAGS = [].freeze
106
105
  DEFAULT_HEADING_ANCHOR = false
107
106
  DEFAULT_HEADING_ANCHOR_ICON = 'fa-solid fa-link'
108
- DEFAULT_HEADING_ANCHOR_SIZE = 'fa-xs'
109
107
 
110
108
  def self.name
111
109
  'LinkDecorator'
@@ -298,8 +296,8 @@ module Jekyll
298
296
 
299
297
  ha_data = @config['with_heading_anchor_data'] || {}
300
298
  icon_class = ha_data.fetch('icon', DEFAULT_HEADING_ANCHOR_ICON)
301
- icon_size = ha_data.fetch('icon_size', DEFAULT_HEADING_ANCHOR_SIZE)
302
- full_icon = "#{icon_class} #{icon_size}"
299
+ icon_size = ha_data['icon_size']
300
+ full_icon = [icon_class, icon_size].compact.join(' ')
303
301
  id_counts = {}
304
302
 
305
303
  doc.css('h1, h2, h3, h4, h5, h6').each do |heading|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-link-decorator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ReleaseBot