有没有办法将 link 非 https 资源放入 github 页面站点?

Is there a way to link non-https resources into a github pages site?

所以我在 Chrome 控制台中收到以下错误:

Mixed Content: The page at 'https://your-username.github.io/' was loaded over HTTPS, but requested an insecure stylesheet 'http://yui.yahooapis.com/pure/0.6.0/pure-min.css'. This request has been blocked; the content must be served over HTTPS.

基本上,yahoo pure 库是通过 HTTP 提供的。唯一的解决方案是从我的 index.html 页面(例如“./pure-min.css”)以 "relative directory" 格式下载它并 link 到它吗?

按照建议in this issue,改为尝试

replacing all occurrences of http://yui.yahooapis.com with https://yui-s.yahooapis.com.

您可以在这个 YUI 库示例中看到它的使用:ProfilerViewer 控件。