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

查看:32
本文介绍了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天全站免登陆