From 0f0feb17be62a36afa138e912a7cd938ceb4feb0 Mon Sep 17 00:00:00 2001 From: George <31376482+george-gca@users.noreply.github.com> Date: Tue, 13 Feb 2024 19:05:01 -0300 Subject: [PATCH] Fixed related publications appearing in toc (#2196) Fixes #2192 --------- Signed-off-by: George Araujo --- assets/js/common.js | 4 ++++ 1 file changed, 4 insertions(+) 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);