jekyll-link-decorator 1.5.2 → 1.6.0
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/lib/jekyll-link-decorator/version.rb +1 -1
- data/lib/jekyll-link-decorator.rb +13 -8
- 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: 4d91801b17b914f5fd1b053dabb0ca88e6d814c80dd0a58b929272ddaf636224
|
|
4
|
+
data.tar.gz: 22127cd8018119d37a82855bed5f73476783f46610b763c4eb31a5095689cdac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 22225853f9368b78e14d32a8c44d945acc6c526a225992603d51317892c2c5ae9f958bf6f4882352441087a00d3f442071142f38f7953f2189bb4c1fe9a0daa1
|
|
7
|
+
data.tar.gz: f83df55c641942409368e632ef79763a669d06d558fe02b2911a4198361d6c81f936360213ce9858c48d32ebd64f465abdca96d42e7bcadc6c6a0613c0cbf002
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
# - `default_link_classes`: Classes applied to links outside an .alert.
|
|
32
32
|
# Example: `default_link_classes: "text-decoration-none"`
|
|
33
33
|
# If a link already carries its own `link-{color}`, `link-underline-*`,
|
|
34
|
-
# `link-offset-*`, `link-underline-opacity-*`,
|
|
34
|
+
# `link-offset-*`, `link-underline-opacity-*`, `link-opacity-*`, or `focus-ring(-{color})?` class,
|
|
35
35
|
# the plugin skips the matching default token automatically — see LINK_CLASS_FAMILIES.
|
|
36
36
|
# - `alert_link_classes`: Classes applied to links inside an .alert box.
|
|
37
37
|
# Example: `alert_link_classes: "text-decoration-underline"`
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
# ```yaml
|
|
67
67
|
# with_link_decorator: true
|
|
68
68
|
# with_link_decorator_data:
|
|
69
|
-
# default_link_classes: "link link-offset-3 link-offset-3-hover link-underline-primary link-underline-opacity-0 link-underline-opacity-100-hover"
|
|
70
|
-
# alert_link_classes: "alert-link"
|
|
69
|
+
# default_link_classes: "link link-offset-3 link-offset-3-hover link-underline-primary link-underline-opacity-0 link-underline-opacity-100-hover focus-ring"
|
|
70
|
+
# alert_link_classes: "alert-link focus-ring"
|
|
71
71
|
# external_link_icon: true
|
|
72
72
|
# external_link_icon_excluded_tags:
|
|
73
73
|
# - img
|
|
@@ -97,8 +97,8 @@ module Jekyll
|
|
|
97
97
|
# external-link icons for cross-domain links.
|
|
98
98
|
class LinkDecorator < Jekyll::Converters::Markdown
|
|
99
99
|
DEFAULT_LINK_CLASSES = 'link link-offset-3 link-offset-3-hover link-underline-primary ' \
|
|
100
|
-
'link-underline-opacity-0 link-underline-opacity-100-hover'
|
|
101
|
-
DEFAULT_ALERT_LINK_CLASSES = 'alert-link'
|
|
100
|
+
'link-underline-opacity-0 link-underline-opacity-100-hover focus-ring'
|
|
101
|
+
DEFAULT_ALERT_LINK_CLASSES = 'alert-link focus-ring'
|
|
102
102
|
|
|
103
103
|
# Bootstrap 5 link-utility "families" whose defaults must not silently
|
|
104
104
|
# override an author's own explicit class from the same family — see
|
|
@@ -111,9 +111,9 @@ module Jekyll
|
|
|
111
111
|
#
|
|
112
112
|
# Enumerated families (offset, both opacity families) lock to Bootstrap's
|
|
113
113
|
# fixed value set, so an out-of-range value like "link-opacity-42" isn't
|
|
114
|
-
# recognized as an override either. Color
|
|
115
|
-
# link-underline-{color}
|
|
116
|
-
# define arbitrary custom color names.
|
|
114
|
+
# recognized as an override either. Color and focus-ring families
|
|
115
|
+
# (link-{color}, link-underline-{color}, focus-ring(-{color})?) stay
|
|
116
|
+
# generic (\S+) since Bootstrap themes can define arbitrary custom color names.
|
|
117
117
|
LINK_CLASS_FAMILIES = [
|
|
118
118
|
{ # link-{color}, e.g. link-primary, link-body-emphasis (bare colored-link class;
|
|
119
119
|
# excludes link-underline-*, link-offset-*, and link-opacity-* families)
|
|
@@ -131,6 +131,11 @@ module Jekyll
|
|
|
131
131
|
{ # link-opacity-{10,25,50,75,100}, each with an optional -hover variant
|
|
132
132
|
# (controls link-text opacity, distinct from link-underline-opacity-*)
|
|
133
133
|
pattern: /\Alink-opacity-(?:10|25|50|75|100)(-hover)?\z/
|
|
134
|
+
},
|
|
135
|
+
{ # focus-ring and focus-ring-{color}, e.g. focus-ring-primary, focus-ring-success
|
|
136
|
+
# Bootstrap 5.3 focus-ring has no hover, offset, or opacity variants — only bare
|
|
137
|
+
# and color forms; color stays generic (\S+) for custom theme colors
|
|
138
|
+
pattern: /\Afocus-ring(-\S+)?\z/
|
|
134
139
|
}
|
|
135
140
|
].freeze
|
|
136
141
|
DEFAULT_EXTERNAL_LINK_ICON = true
|