mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-03 09:58:30 +02:00
add header anchor links to the coure pages (#1958)
This commit is contained in:
@@ -8,7 +8,7 @@ anchors.options.class = 'text-decoration-none';
|
|||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function (event) {
|
document.addEventListener('DOMContentLoaded', function (event) {
|
||||||
anchors.add('.qdrant-post__body :is(h1, h2, h3, h4, h5, h6)');
|
anchors.add('.qdrant-post__body :is(h1, h2, h3, h4, h5, h6)');
|
||||||
if (/documentation|articles/.test(window.location?.pathname)) {
|
if (/documentation|articles|course/.test(window.location?.pathname)) {
|
||||||
anchors.add('.documentation-article > :is(h1, h2, h3, h4, h5, h6)');
|
anchors.add('.documentation-article > :is(h1, h2, h3, h4, h5, h6)');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user