【发布时间】:2016-05-16 00:02:22
【问题描述】:
我正在尝试建立一个 github 站点:https://github.com/derlin/semantic-modals/tree/gh-pages。我使用ng-include 指令,例如:
<div ng-include src="'_main.html'">
在不同的地方,但它们都不起作用。
我试图重命名我的文件,将它们从html 文件夹移动到根目录,我总是以 404 结束。
我可以在浏览器中显示我的任何文件,例如:http://derlin.github.io/semantic-modals/vendor/semantic/semantic.min.css,但http://derlin.github.io/semantic-modals/_main.html 或http://derlin.github.io/semantic-modals/_editModalContent.html 系统会失败(即使在移动/重命名之后)。
为什么这些文件在我的仓库的 gh-pages 分支中存在时对 github.io “不可见”?
【问题讨论】:
标签: angularjs github github-pages