Giter Club home page Giter Club logo

Comments (7)

Myer921 avatar Myer921 commented on June 23, 2024

@firedent 很抱歉这么晚回复你,这个问题按照我的姿势量暂时无法解决(说起来这个项目我就是个挂名的)
@dixyes 豆哥 麻烦有空看下吧= =,需要什么直接和我说,你可以在某个鸽子王群找我

(如果你能解决的话欢迎pr 谢谢

from hexo-tag-dplayer.

dixyes avatar dixyes commented on June 23, 2024

重写的版本: https://gist.github.com/dixyes/b0574cdca8d969ba7a3f26cdd73ea6ca
@firedent @Myer921 帮忙测试 靴靴
解决了 #1 (用的比较脏的方法) #10
如果测试没问题你可以往master打补丁了,再改个minor版本号吧

对于本issue的逻辑是 当开启post_asset_folder时,不是http(s)://或者//开头的url被视为相对的
同时更新了jspath和csspath的设置方法
在_config.yml里使用

hexo-tag-dplayer:
    js_path: /xxx
    css_path: /xxx
    cdn:
     - http://xxx/dplayer.mim.js

来选择js和css的拷贝路径或者使用cdn的url

from hexo-tag-dplayer.

Myer921 avatar Myer921 commented on June 23, 2024

@dixyes 如果有空的话请补一下英文介绍吧,神奇豆子

附赠完整更新内容,或许可能会有新的bug出现也说不准
除本贴外更新了插件依赖的dplayer版本

from hexo-tag-dplayer.

firedent avatar firedent commented on June 23, 2024

@dixyes @Myer921 二位辛苦了。如果让我这个半吊子Javaer来写JS,那可真是要了我的老命了。我不太明白的是,js_pathcss_pathcdn有什么作用呢?什么情况下才需要更改DPlayer.min.js的位置?而且,只配置DPlayer.min.js的CDN意义不大吧。。。难道说有一些我还没发现的*操作需要这几个配置?

from hexo-tag-dplayer.

dixyes avatar dixyes commented on June 23, 2024

只是单纯的在默认配置的hexo使用的话

这三个选项你都可以不用关心

jspath和csspath设置项是设置插件拷贝dplayer的js和式样文件到博客的目标目录的

默认的 插件将会拷进/asset/js和/asset/css
(以我的习惯 我喜欢直接/js和/css

cdn选项可以不拷贝这些文件而直接使用cdn提供的静态文件(比如bootcdn或者cdnjs之类的地方

(有些时候js和css从你的博客加载更快 而有时候从cdn更快 自行选择哪种合适

from hexo-tag-dplayer.

grzhan avatar grzhan commented on June 23, 2024

感谢 @dixyes ,对于相对地址问题将考虑在 hexo-tag-aplayer 中引入类似的解决方案。 @firedent

from hexo-tag-dplayer.

Myer921 avatar Myer921 commented on June 23, 2024

时间超时,暂时冻结

from hexo-tag-dplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.