Skip to content

Commit

Permalink
fix: update css selector for anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxsan committed Sep 14, 2022
1 parent 674336c commit cb1a4a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_includes/layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<script src="https://unpkg.com/anchor-js@4.3.1/anchor.min.js" type="text/javascript"></script>
<script>
document.addEventListener("DOMContentLoaded", () => {
anchors.add(".post h2, .post h3, .post h4");
anchors.add(".post__blog-content h2, .post__blog-content h3, .post__blog-content h4");
});
</script>
<main id="main" class="post-main" tabindex="-1">
Expand Down

0 comments on commit cb1a4a5

Please sign in to comment.