Skip to content

Commit

Permalink
Merge pull request #4889 from shiltemann/anchorlinks
Browse files Browse the repository at this point in the history
Make sections easier to link to by adding deep anchor tags
  • Loading branch information
hexylena authored May 13, 2024
2 parents 8e3455a + 9685105 commit 2534da7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ javascript_bundles:
- assets/js/bootstrap.min.js # Everywhere
- assets/js/bootstrap-toc.min.js # Only tutorials, faqs
- assets/js/clipboard.min.js # Used on anything with a pre
- assets/js/anchor.min.js # Used on every page.
- assets/js/main.js
# - assets/js/list.min.js # Potentially unused?

Expand Down
1 change: 1 addition & 0 deletions _layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,6 @@
<script src="{{ site.baseurl }}/assets/js/[email protected]" async></script>
<link rel="preload" href="{{ site.baseurl }}/assets/js/[email protected]" as="script" crossorigin>
{% endif %}

</body>
</html>
16 changes: 16 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 2534da7

Please sign in to comment.