Add self-closing slashes to font links and expand sidebar tree by
default
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user