Add self-closing slashes to font links and expand sidebar tree by

default
This commit is contained in:
2026-05-14 00:21:55 +08:00
parent 85d369c13a
commit 3811a95913
+18 -3
View File
@@ -1,4 +1,19 @@
<!-- Custom fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap"
rel="stylesheet"
/>
<!-- Expand sidebar tree by default -->
<script>
document.addEventListener("DOMContentLoaded", function () {
document
.querySelectorAll(".hextra-sidebar-collapsible-button")
.forEach(function (btn) {
var li = btn.closest("li");
if (li) li.classList.add("open");
});
});
</script>