mirror of https://github.com/docker/docs.git
Merge pull request #16909 from crazy-max/anchorlink
do not append anchorLink for tiles
This commit is contained in:
commit
59f9d52ce2
|
@ -1,7 +1,7 @@
|
||||||
(function (d) {
|
(function (d) {
|
||||||
"use strict";
|
"use strict";
|
||||||
for (const h of d.querySelectorAll("H1, H2, H3")) {
|
for (const h of d.querySelectorAll("H1, H2, H3")) {
|
||||||
if (h.id != null && h.id.length > 0) {
|
if (h.id != null && h.id.length > 0 && !h.parentElement.classList.contains("component")) {
|
||||||
h.insertAdjacentHTML('beforeend', `<a href="#${h.id}" class="anchorLink">🔗</a>`)
|
h.insertAdjacentHTML('beforeend', `<a href="#${h.id}" class="anchorLink">🔗</a>`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue