Mrminfive / hexo-theme-skapp

The hexo flat design theme(扁平化简约主题)
MIT License
481 stars 117 forks source link

common.js location issue #37

Open factoryal opened 6 years ago

factoryal commented 6 years ago

image

I'm testing appling this theme at http://localhost:4000/mk/ Every file loads okay except common.js Only this file is trying to load in root directory, not /mk/ directory. How can I fix that?

Thanks for your answer and sorry for my english...

BruceYuj commented 6 years ago

use order hexo s to test( not hexo s -debug)

factoryal commented 6 years ago

@BruceYuj I tried but not working also.

BruceYuj commented 6 years ago

can you show me the hexo console log ?

factoryal commented 6 years ago

@BruceYuj

image

Is this right?

BruceYuj commented 6 years ago

it looks correct. common. js is concat by other js files.

BruceYuj commented 6 years ago

common. js has been created. Can you flush your browser and show me the error hexo log

factoryal commented 6 years ago

@BruceYuj image

image

I force removed the cache and loaded again. but nothing changes. The index.css file directory is correct. It's in /mk/ subdirectory. but common.js file is not.

BruceYuj commented 6 years ago

what is your OS

factoryal commented 6 years ago

Windows 10 Pro Insider Preview Build 17074.rs_prerelease_fit.180116-1539 image

BruceYuj commented 6 years ago

@fatoryal because i can't use my computer now, i can't test your problem. can you wait for some hours or check your configuration or restart your computer.

factoryal commented 6 years ago

@BruceYuj Thanks for your support.

BruceYuj commented 6 years ago

@factoryal
this is my test hexo s log hexo s

this is the post site http://localhost:4000/2018/01/22/2017-1-22-context-and-executionContext/ dev html structure. hexo-post

When I use order hexo g, I can find the common.js file in the public\js folder. default

factoryal commented 6 years ago

@BruceYuj Yeah, It works when I set server location as root (localhost:4000/) But It is not working when server location at subdirectory (localhost:4000/mk/) Directory of js files are absolute not relative.

BruceYuj commented 6 years ago

@factoryal That is because the index page does not need the common.js file.

BruceYuj commented 6 years ago

@factoryal Hi, do you fix your problem?

factoryal commented 6 years ago

@BruceYuj Sorry for late reply. I didn't fix the problem yet. Some other Hexo themes causes this problem also. (example: https://github.com/stkevintan/hexo-theme-material-flow/issues/4) Now, I'm working in root directory.