MeiK2333 / github-style

https://themes.gohugo.io/themes/github-style
MIT License
555 stars 174 forks source link

it doesn't work in chrome or firfox #3

Closed zxmrlc closed 4 years ago

zxmrlc commented 4 years ago

Thanks for your theme! I find some problems with web-security. Chrome will intercept and prompt a message "loaded unsafe script". request

blue-bird1 commented 4 years ago

Because the author converted the script path to an absolute path. So in fact the protocol uses the baseurl in config.toml. This problem will occur if the baseurl you filled in is http://xxx and the domain you are deploying is https

zxmrlc commented 4 years ago

Because the author converted the script path to an absolute path. So in fact the protocol uses the baseurl in config.toml. This problem will occur if the baseurl you filled in is http://xxx and the domain you are deploying is https

First,thanks for your answer. but I am afraid that http/https doesn't applicable to this issue. baseURL = "http://zxmrlc.github.io/" in config.toml are used for site "http://zxmrlc.github.io/". I will try to change HTTP to HTTPS. thank you again!

zxmrlc commented 4 years ago

After I changed HTTP to HTTPS, the problem has been solved! I take this opportunity to thank you again for your answer