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 <george.gcac@gmail.com>
  • Loading branch information
george-gca authored and HaukeCornell committed Jul 8, 2024
1 parent ee07912 commit a6a362d
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 a6a362d

Please sign in to comment.