smackgg / hexo-theme-smackdown

hexo-theme-smackdown DEMO:
http://oldblog.smackgg.cn/
145 stars 28 forks source link

The web Path problem of the static resource #8

Open yythlj opened 6 years ago

yythlj commented 6 years ago

The required function has something wrong in my blog web. Like me,the blog address is http://eetal.gitee.io/blog/ And in my root _config.yml I config like this url: 'http://eetal.gitee.io/blog/' root: '/blog/' It works ok in the default theme But in your theme, the output html static resource url become http://eetal.gitee.io/js/, http://eetal.gitee.io/img/... the browser console come some 404 In the main.js you use the required function and I add the /blog behind the requied function first param,It work Maybe I have some mistake in the _config.yml Could you please solve myu questiion ,thank you?

smackgg commented 6 years ago

不好意思,最近比较忙,这个主题好久没看过了,如果有什么好的建议和bug修复可以看看源码,然后提个PR,谢啦