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 siril-teja committed Jun 19, 2024
1 parent 2b544f4 commit 4e32374
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 4e32374

Please sign in to comment.