diff --git a/assets/js/common.js b/assets/js/common.js index 0af03520a4bf..f40fc4e6b74d 100644 --- a/assets/js/common.js +++ b/assets/js/common.js @@ -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);