Skip to content

Commit

Permalink
fix: readd heading anchors when navigating between different posts
Browse files Browse the repository at this point in the history
  • Loading branch information
FjellOverflow committed Oct 24, 2024
1 parent 53c8b8f commit a9dd54e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/HeadingAnchorsPlugin.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
---

<script is:inline>
<script is:inline data-astro-rerun>
function setupHeadingAnchors() {
const headings = Array.from(document.querySelectorAll('h2, h3, h4, h5, h6'))
for (const heading of headings) {
Expand Down

0 comments on commit a9dd54e

Please sign in to comment.