Skip to content

Commit

Permalink
Fixed related publications appearing in toc (alshedivat#2196)
Browse files Browse the repository at this point in the history
Fixes alshedivat#2192

---------

Signed-off-by: George Araujo <[email protected]>
  • Loading branch information
george-gca authored Feb 13, 2024
1 parent 9794c62 commit 0f0feb1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ $(document).ready(function () {

// bootstrap-toc
if ($("#toc-sidebar").length) {
// remove related publications years from the TOC
$(".publications h2").each(function () {
$(this).attr("data-toc-skip", "");
});
var navSelector = "#toc-sidebar";
var $myNav = $(navSelector);
Toc.init($myNav);
Expand Down

0 comments on commit 0f0feb1

Please sign in to comment.