Skip to content

Commit

Permalink
fix: hexo-blog-decrypt 代码块样式修复
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Sketon committed Apr 28, 2024
1 parent f6be6bd commit bdd950d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/js/pjax_script.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,5 +305,11 @@ var scrollIntoViewAndWait = (element) => {
};

window.addEventListener('hexo-blog-decrypt', tocInit);
window.addEventListener('hexo-blog-decrypt', () => {
const script = document.createElement('script');
script.src = '/js/insert_highlight.js';
script.setAttribute('data-pjax', true);
document.body.appendChild(script);
});
tocInit();
})(jQuery);

0 comments on commit bdd950d

Please sign in to comment.