设置Github页面

时间:2017-10-05 15:06:05

标签: github-pages

我的问题是如何在我的GitHub帐户中没有“启动自动页面生成器”时创建git页面。我尝试将index.html文件添加到master分支。如何为该页面添加主题,它不会显示在页面表单中,而只是显示代码

1 个答案:

答案 0 :(得分:1)

第一步是为您的github页面创建新的存储库。 核心功能是github页面的名称。 要使您的github页面正常工作,您需要将其命名为: your_project_name.github.io github页面的起始文件为index.html

创建新存储库 enter image description here

Upoad index.html到您的存储库。 enter image description here

index.html档案代码:

<html>
<head>
<title>hello github!</title>
</head>
<body>
hello github!
</body>
</html>

<强>结果:

enter image description here

https://github.com/fonjeekay/fonjeekay.github.io

https://fonjeekay.github.io/

操作完成后,您需要等待一段时间才能将github.io页面添加到github.io服务器。

相关问题