mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
do not append anchorLink for tiles
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
(function (d) {
|
||||
"use strict";
|
||||
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>`)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user