Skip to content
Snippets Groups Projects

Add AnchorJS to aid with linking to page fragments

Merged Martyn Welch requested to merge wip/martyn/add-anchorjs into master
2 files
+ 14
4
Compare changes
  • Side-by-side
  • Inline
Files
2
<!--
If you want to include any custom html just before </body>, put it in /layouts/footer_custom.html
Do not put anything in this file - it's only here so that hugo won't throw an error if /layouts/footer_custom.html doesn't exist.
-->
\ No newline at end of file
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.2.2/anchor.min.js"></script>
<script>
anchors.add('h1,h2,h3,h4,h5,h6');
</script>
Loading