FIX: Remove anchor generated by theme component (#13)
Core adds anchors to all headings.
This commit is contained in:
parent
c64a82b4b8
commit
113d3a8612
|
@ -133,23 +133,6 @@
|
|||
font-size: 0.8em;
|
||||
}
|
||||
}
|
||||
.d-toc-post-heading {
|
||||
.d-toc-anchor-link {
|
||||
font-size: initial;
|
||||
color: transparent;
|
||||
transition: color 0.15s linear;
|
||||
:not(.rtl) & {
|
||||
margin-left: 5px;
|
||||
}
|
||||
.rtl & {
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
&:hover .d-toc-anchor-link {
|
||||
color: var(--primary-medium, $primary-medium);
|
||||
opacity: 0.6;
|
||||
}
|
||||
}
|
||||
#bottom-anchor {
|
||||
opacity: 0;
|
||||
height: 0;
|
||||
|
|
|
@ -31,16 +31,6 @@
|
|||
return cleanItem;
|
||||
};
|
||||
|
||||
const createAnchors = id => {
|
||||
const link = $("<a/>", {
|
||||
href: `#${id}`,
|
||||
class: "d-toc-anchor-link",
|
||||
html: linkIcon
|
||||
});
|
||||
|
||||
return link;
|
||||
};
|
||||
|
||||
const setUpTocItem = function (item) {
|
||||
const unique = item.attr("id");
|
||||
const text = item.text();
|
||||
|
@ -302,7 +292,6 @@
|
|||
id: id,
|
||||
"data-d-toc": id
|
||||
})
|
||||
.append(createAnchors(id))
|
||||
.addClass("d-toc-post-heading");
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue