Skip to content

Commit

Permalink
Added anchor.min.js to handle header anchor links automagically
Browse files Browse the repository at this point in the history
  • Loading branch information
IanLee1521 committed Dec 11, 2020
1 parent 8c39147 commit 01d3527
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _includes/scripts.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!-- JS Anchoring -->
<script src="{{ site.baseurl }}/assets/js/anchor.min.js"></script>
<script>
anchors.add()
</script>
2 changes: 2 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

{% include footer.html %}

{% include scripts.html %}

</body>

</html>
9 changes: 9 additions & 0 deletions assets/js/anchor.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 01d3527

Please sign in to comment.