mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 12:36:16 -04:00
Add anchor links to headers
This commit is contained in:
parent
d1997764cf
commit
7f84c70b82
3 changed files with 13 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
{{include "/includes/head.html"}}
|
{{include "/includes/head.html"}}
|
||||||
<link rel="stylesheet" href="/resources/css/docs.css">
|
<link rel="stylesheet" href="/resources/css/docs.css">
|
||||||
<script src="/resources/js/jquery-3.4.1.min.js"></script>
|
<script src="/resources/js/jquery-3.4.1.min.js"></script>
|
||||||
|
<script src="/resources/js/anchor.min.js"></script>
|
||||||
<script src="/resources/js/docs.js"></script>
|
<script src="/resources/js/docs.js"></script>
|
9
src/resources/js/anchor.min.js
vendored
Normal file
9
src/resources/js/anchor.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -12,4 +12,7 @@ $(function() {
|
||||||
$currentPageLink = $('main nav a[href="/docs/json/"]');
|
$currentPageLink = $('main nav a[href="/docs/json/"]');
|
||||||
}
|
}
|
||||||
$currentPageLink.addClass('current');
|
$currentPageLink.addClass('current');
|
||||||
|
|
||||||
|
// Enable anchor links using https://github.com/bryanbraun/anchorjs
|
||||||
|
anchors.add();
|
||||||
});
|
});
|
Loading…
Add table
Add a link
Reference in a new issue