D0n9X1n / hexo-blog-encrypt

Yet, just another hexo plugin for security.
https://www.npmjs.com/package/hexo-blog-encrypt
MIT License
971 stars 101 forks source link

你好大佬,想请你帮我看下回调函数 #190

Closed GC-ZF closed 1 year ago

GC-ZF commented 1 year ago

Issue

文章用了另一个插件hexo-tag-dplayer,在不设置password时加载正常,如果设置了password

{% dplayer "url=xxx" "autoplay=false" %}

不能够显示出来

Expected Behavior

预期 image

Actual Behavior

加了密码,dplayer无法使用,暂时用iframe代替了 image image

Steps to Reproduce the Problem

无密码网址 https://zhangshier.vip/posts/47314/

有密码网址 https://zhangshier.vip/posts/40406/

Specifications

(The version of the project, operating system, hardware etc.) hexo: ^6.2.0 主题:butterfly:4.3.0 hexo-tag-dplayer: ^0.3.3 hexo-blog-encrypt: ^3.1.6 电脑:win10,浏览器:Edge,加密后dplayer无法显示 手机:华为note,浏览器华为自带,加密或不加密,网页过几秒再刷新就有dplayer了(应该是dplayer自身问题)

尝试

在之前看过一些别人的提问,通过在文章底部加入回调函数解决(看过readme了,我太弱了,没弄出来),如果加了密码,这个就会404

image

可以帮我看看怎么加么?谢谢大佬

GC-ZF commented 1 year ago

麻烦作者了,解决俩插件冲突

影响不是特别大,iframe不能设置禁止自动播放,vidoe可以设置但是width只能设置视频属性,外边框很大一块空白,所以想用dplay插件,如果无解就close掉吧,我用标签吧

D0n9X1n commented 1 year ago

看了下 hexo-tag-dplayer 的实现原理, 这种需要在 hexo g 和前端页面间配合的插件比较难兼容.如果能有其他方式绕过就绕过吧. 只能说, hexo 作为纯静态博客系统, 局限还是太大了.