-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
插件js在首页中重复加载的解决方案(暂时) #1
Comments
如果有更好方案,欢迎探讨 |
倒不如说是hexo设计的问题,但是我这么懒的人 会使用
这样的标签避免主页出现a/dplayer |
这个要怎么用????? |
嗯。。。我找遍了hexo源码,但没有找到可以在渲染theme时用的filter。。。建议要是大量使用dplayer就改模板吧,小量使用可以这样使用:
|
我才看到这文章日期,豆子你这么作死真的好吗? |
你不说我都没注意到 目测我电脑时间错乱了 |
玩的真好 未来的豆子你好 |
Closed
Closed
dixyes
added a commit
to dixyes/hexo-tag-dplayer
that referenced
this issue
Nov 26, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在一部分主题中,主题会将所有文章内容放到首页中,但这样会导致了aplayer以及dplayer插件js的重复加载
(打开控制台 看看是不是多了好几行的dplayer的标识)
这对于用户访问来说是不好的
暂行解决方案
修改/hexo网站目录/node_modules/hexo-tag-(括号删除,这里填你要编辑的插件,aplayer写a,dplayer写d)player/index.js
将此段代码注释,并魔改主题
修改主题目录的head.js文件
在
</head>
前一行添加请根据需要添加对应行
并执行一次
hexo clean && hexo g
让其生效
The text was updated successfully, but these errors were encountered: