Shen Hao

Results 4 comments of Shen Hao

已经解决了,需要重载一下matery.js里的articleInit()函数,我新建了一个init.js,并且把articleInit()函数放了进去,删除$('#articleContent a').attr('target', '_blank');这一行,不然会douban插件会跳转错误。然后在pjax.ejs中的document.addEventListener('pjax:complete', function () {})里加入了$.getScript("/js/init.js",function(){articleInit();});进行重载

repo那一项填写的是仓库名字(xxx),而不是仓库地址(xxx.git.io),hexo g有延迟,要先hexo clean

> 如图: 源代码 ![8{ 1KYBCNUZ ) OA5XX{CLH](https://user-images.githubusercontent.com/72645310/211268313-f5a370ff-14df-4fa8-8fe2-4aa801c83ae9.png) 不使用压缩 ![96PYLLGZX7AS(9TS8L`EB(L](https://user-images.githubusercontent.com/72645310/211268363-ac6960a7-d382-4d99-931c-84c9db111b5f.png) 使用neat压缩后 ![H{N_W)I GVD~S6F27P($Z8D](https://user-images.githubusercontent.com/72645310/211268407-fe4c8619-33bf-40e4-be71-5dcd95d14276.png) 压缩 md 文件会使 markdown 语法的代码块消失 会删除全角空格