blog: reading mode fixes, add highight.js for codeblocks

This commit is contained in:
ari melody 2025-07-05 15:11:51 +01:00
parent faf6095d16
commit ddbf3444eb
Signed by: ari
GPG key ID: CF99829C92678188
26 changed files with 1777 additions and 25 deletions

View file

@ -6,6 +6,7 @@ document.querySelectorAll('.comment-hover').forEach((/** @type {HTMLDivElement}
hijackClickEvent(comment, commentDate);
});
/*
document.getElementById('blog-copy-link').addEventListener('click', event => {
event.preventDefault();
if (navigator.clipboard === undefined) {
@ -14,3 +15,6 @@ document.getElementById('blog-copy-link').addEventListener('click', event => {
}
navigator.clipboard.writeText(location.protocol + "//" + location.host + location.pathname);
});
*/
hljs.highlightAll();