hugo-theme-minima/assets/js/style.js
2022-11-08 18:07:48 +08:00

9 lines
No EOL
329 B
JavaScript

// fix style of checkboxes in posts.
document.querySelectorAll('.md ul').forEach(v => {
if (/<li><input .+>.+<\/li>/.test(v.innerHTML)) {
v.classList.add('ul-checkbox');
}
});
// // use custom font family
// document.querySelector('body').style.setProperty('--global-font-family', '{{ .Site.Params.globalFontFamily }}');