hexo创建的博客在github页面上无效

时间:2019-07-30 03:25:03

标签: github

我遇到问题,现在我使用为个人博客构建的hexo:https://darr-en1.github.io/

但是随后部署到https://github.com/Darr-en1/Darr-en1.github.io:出于好奇,我将项目设置为私有,然后变成404(无法访问),然后将其设置为公共(无法解决此问题), 然后,我删除该项目并重新创建它,然后hexo d,但仍然无法访问。

你能帮我吗?

deploy:
  type: git
  repo: https://github.com/Darr-en1/Darr-en1.github.io.git
  branch: master

当我打开开发人员工具时,错误显示如下:

  

拒绝加载图片“ https://darr-en1.github.io/favicon.ico”   因为它违反了以下“内容安全策略”指令:   “ img-src数据:”。

1 个答案:

答案 0 :(得分:0)

检查Content Security Policy Reference mentioned here,如果需要使用useHash: true,则显示为in this comment

另请参阅您是否有redirect issue as an SPA (Single page Application)

最后,作为GitHub Page,请确保选择master作为您的发布分支,为illustrated here
请参阅“ Configuring a publishing source for GitHub Pages”。