jekyll-link-decorator 1.5.0 → 1.5.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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/jekyll-link-decorator/version.rb +1 -1
- data/lib/jekyll-link-decorator.rb +10 -12
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 86487049f93f8629a147eb1951acfd42988230e0be214177364a9c1b1125a369
|
|
4
|
+
data.tar.gz: ec957d708689c5005016bee2ac210ecbd12aefa85f0454873ef28e964492ee3a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6c419799160ddd533b6119a3182959b3961b101c2a0d3fd7aba9ab0be4c271451eda7cf637eab717f1dfbd4ca59ff0fbe20a1e13fac7c66a67ad88f57f1fab08
|
|
7
|
+
data.tar.gz: 36b2e3c4a30442c7bf603a3607fa6591b6e347b5471139a71a22626ebce4e7004060783d473848dba9c48e196778691457b06c6ae65f6c682b2e59c1d0409b39
|
data/README.md
CHANGED
|
@@ -43,20 +43,20 @@
|
|
|
43
43
|
#
|
|
44
44
|
# === Heading Anchor Support ===
|
|
45
45
|
#
|
|
46
|
-
# The plugin can inject a
|
|
47
|
-
#
|
|
46
|
+
# The plugin can inject a permalink icon inside each heading (h1–h6), giving
|
|
47
|
+
# users a direct, linkable URL to every section. This feature is configured
|
|
48
48
|
# via two top-level keys (separate from `with_link_decorator_data`):
|
|
49
49
|
#
|
|
50
50
|
# * `with_heading_anchor`: Boolean (default: false) that controls whether heading anchors
|
|
51
51
|
# are injected. Set to true to enable.
|
|
52
52
|
#
|
|
53
53
|
# * `with_heading_anchor_data`: A dictionary containing optional configuration keys:
|
|
54
|
-
# - `icon`:
|
|
55
|
-
#
|
|
56
|
-
#
|
|
57
|
-
#
|
|
58
|
-
#
|
|
59
|
-
#
|
|
54
|
+
# - `icon`: CSS classes applied to the anchor's glyph element (default:
|
|
55
|
+
# "heading-anchor-hash pe-1", which renders a plain "#" via the
|
|
56
|
+
# jekyll-theme-centos-base theme's CSS). Accepts any class list, including
|
|
57
|
+
# Font Awesome icon classes (e.g. "fa-solid fa-hashtag") for sites that
|
|
58
|
+
# want an icon-font glyph instead.
|
|
59
|
+
# - `icon_size`: Optional size modifier class appended after the icon classes.
|
|
60
60
|
#
|
|
61
61
|
# If no configuration is provided, the plugin will use default fallback classes
|
|
62
62
|
# and enable external link icons.
|
|
@@ -75,9 +75,7 @@
|
|
|
75
75
|
#
|
|
76
76
|
# with_heading_anchor: true
|
|
77
77
|
# with_heading_anchor_data:
|
|
78
|
-
# icon: "
|
|
79
|
-
# copy_success_message: "Copied!"
|
|
80
|
-
# reset_delay: 2000
|
|
78
|
+
# icon: "heading-anchor-hash pe-1"
|
|
81
79
|
# ```
|
|
82
80
|
|
|
83
81
|
require 'nokogiri'
|
|
@@ -105,7 +103,7 @@ module Jekyll
|
|
|
105
103
|
DEFAULT_EXTERNAL_LINK_ICON = true
|
|
106
104
|
DEFAULT_EXTERNAL_LINK_ICON_EXCLUDED_TAGS = [].freeze
|
|
107
105
|
DEFAULT_HEADING_ANCHOR = false
|
|
108
|
-
DEFAULT_HEADING_ANCHOR_ICON = '
|
|
106
|
+
DEFAULT_HEADING_ANCHOR_ICON = 'heading-anchor-hash pe-1'
|
|
109
107
|
|
|
110
108
|
def self.name
|
|
111
109
|
'LinkDecorator'
|