Skip to content

Commit fc6a3db

Browse files
committed
Include AnchorJS for automatic anchor links on headings.
1 parent c996d7e commit fc6a3db

File tree

5 files changed

+18
-1
lines changed

5 files changed

+18
-1
lines changed

_includes/footer.html

+2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@
1414

1515
<script src="/js/vendor/jquery-1.10.2.min.js"></script>
1616
<script src="/js/vendor/bootstrap.min.js"></script>
17+
<script src="/js/vendor/anchor.min.js"></script>
18+
<script src="/js/app/main.js"></script>
1719
</body>
1820
</html>

js/app/main.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
$(document).ready(function() {
2+
anchors.add('h2, h3, h4');
3+
});

js/vendor/anchor.min.js

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

styles/buttons.less

+6
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,9 @@ input[type="button"] {
154154
width: 100%;
155155
}
156156
}
157+
158+
// Anchor link
159+
// --------------------------------------------------
160+
.anchorjs-link:hover {
161+
text-decoration: none;
162+
}

styles/main.936b04d2.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)