2021-11-06 08:28:56 +01:00
|
|
|
// fix style of checkboxes in posts.
|
2021-08-19 06:42:00 +02:00
|
|
|
document.querySelectorAll('.md ul').forEach(v => {
|
|
|
|
if (/<li><input .+>.+<\/li>/.test(v.innerHTML)) {
|
|
|
|
v.classList.add('ul-checkbox');
|
|
|
|
}
|
2021-11-06 08:28:56 +01:00
|
|
|
});
|
|
|
|
|
2022-11-08 11:07:48 +01:00
|
|
|
// // use custom font family
|
|
|
|
// document.querySelector('body').style.setProperty('--global-font-family', '{{ .Site.Params.globalFontFamily }}');
|