Closed cooture closed 4 years ago
无样式,浏览器报错,站点ranxb.com
ranxb.com
Refused to execute http://unpkg.com/hexo-theme-material-indigo@latest/js/main.min.js as script because "X-Content-Type: nosniff" was given and its Content-Type is not a script MIME type.
把scripts/plugins.js中一段代码改一下暂时能用。是仓库地址失效了么?
scripts/plugins.js
const source = (path, cache, ext) => { if (!cache) {//改了这里,让他生成本地路径 const minFile = `${path}${ext === '.js' ? '.min' : ''}${ext}` return hexo.theme.config.cdn ? `//unpkg.com/${name}@latest${minFile}` : `${minFile}?v=${version}` } else { return path + ext } }
已恢复
无样式,浏览器报错,站点
ranxb.com
把
scripts/plugins.js
中一段代码改一下暂时能用。是仓库地址失效了么?