GitHub页面仅显示自述文件? [英] GitHub pages only showing ReadMe file?

查看:265
本文介绍了GitHub页面仅显示自述文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图将我的网页托管到Github页面中,但是由于某种原因,它似乎只显示我的自述文件.

I'm trying to host my webpages into Github pages but for some reason it seems to only show my Readme file.

GitHub存储库: https://github.com/InquisitiveDev2016/InquisitiveDev2016.github.io

GitHub repo: https://github.com/InquisitiveDev2016/InquisitiveDev2016.github.io

网站:

https://inquisitivedev2016.github.io/

推荐答案

GitHub Pages正在做其设计的工作:托管整个存储库.存储库的根目录仅包含一个文件(README.md).还有其他页面,例如 https://inquisitivedev2016.github.io/Photo%20Website/webpage.html ,但是没有一种简单的方法可以导航到它们.

GitHub Pages is doing what it is designed to do: hosting that entire repository. The root of the repository only contains a single file (README.md). Other pages are there, e.g. https://inquisitivedev2016.github.io/Photo%20Website/webpage.html, but there isn't an easy way to navigate to them.

请考虑将Web内容移动到存储库的根目录中,并将默认页面重命名为index.mdindex.html,具体取决于文件的类型. (按照惯例,大多数网站的默认页面称为index.html,这是GitHub Pages在存在时默认显示的页面.)

Consider moving your web content into the root of your repository and renaming your default page to index.md or index.html, depending what type of file it is. (By convention the default page of most websites is called index.html, and this is what GitHub Pages will show by default if it exists.)

这篇关于GitHub页面仅显示自述文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆