do not append anchorLink for tiles

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2023-03-17 16:41:46 +01:00
parent 3b8f678015
commit c7d42efd55

View File

@@ -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>`)
}
}