blog: reading mode fixes, add highight.js for codeblocks
This commit is contained in:
parent
faf6095d16
commit
ddbf3444eb
26 changed files with 1777 additions and 25 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue