Skip to content
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

css and js can not be loaded when blog is in a subdir #19

Closed
CharlesLiu7 opened this issue Mar 26, 2018 · 2 comments
Closed

css and js can not be loaded when blog is in a subdir #19

CharlesLiu7 opened this issue Mar 26, 2018 · 2 comments

Comments

@CharlesLiu7
Copy link

CharlesLiu7 commented Mar 26, 2018

TL;DR : you use the same logic to generate the DPlayer.min.js and find the DPlayer.min.js in stylesheet.

Details:
I put my blog in a subdirectory, i.e. in `_config.yml

url: https://xxx.me
root: /blog/

And I set styleDir = '/blog/assets/css/', now it puts the DPlayer.min.js in 'https:xxx.me/blog/blog/assests/css/ and the stylesheet tries to find it https:xxx.me/blog/assests/css/. WRONG!

THX

dixyes added a commit to dixyes/hexo-tag-dplayer that referenced this issue Mar 27, 2018
@dixyes
Copy link
Member

dixyes commented Mar 27, 2018

try this
https://github.com/dixyes/hexo-tag-dplayer
in commit 8031282

@CharlesLiu7
Copy link
Author

THX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants