Fixed related publications appearing in toc (#2196)

Fixes #2192

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
This commit is contained in:
George 2024-02-13 19:05:01 -03:00 committed by GitHub
parent 9794c625b6
commit 0f0feb17be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -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);