tAttribute("href") === currentPath) {
            item.parentElement.classList.add("current");
          }
        });
      });
    </script>
    <script th:if="${theme.config.base.search_style == 'default' and pageType != 'search'}">
      const searchBox = document.querySelector(".search-form");
      if (searchBox) {
        searchBox.addEventListener("click", (e) => {
          e.preventDefault();
          SearchWidget.open();
        });
      }
    </script>
    <!--    初始化文章目录-->
    