refactor: concat built-in js scripts

chore: vendorize katex 0.16.8

chore: vendorize flexsearch 0.7.31

chore: add katex fonts

chore: vendorize mermaid

* add option to disable math globally

chore: fix edit url nil variable

chore: add comments
This commit is contained in:
Xin
2023-08-12 22:48:41 +01:00
parent d66ae7146f
commit 3d7a4b7c99
71 changed files with 1735 additions and 36 deletions

View File

@ -8,7 +8,7 @@
// {{ end }}
(function () {
const searchDataURL = '{{ $searchData.Permalink }}';
const searchDataURL = '{{ $searchData.RelPermalink }}';
const inputElements = document.querySelectorAll('.search-input');
for (const el of inputElements) {

View File

@ -1,3 +1,5 @@
// Hamburger menu for mobile navigation
const menu = document.querySelector('.hamburger-menu');
menu.addEventListener('click', (e) => {