Skip to content

Commit

Permalink
Only highlight if sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
DrDrij committed Jun 22, 2021
1 parent 17ccb9e commit 85ed2f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.

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

2 changes: 1 addition & 1 deletion src/js/quantecon-book-theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,6 @@ $(window).on('load', () => {
feather.replace();

// Highlight page TOC links as user scrolls
$(".page__toc-nav ul").scrollspy();
$(".sticky .page__toc-nav ul").scrollspy();

})

1 comment on commit 85ed2f2

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.