# 什么是 GitHub Pages?

你可以使用 GitHub Pages 直接从 GitHub 上的存储库托管介绍你自己、你的组织或你的项目的网站。

## 关于 GitHub Pages

GitHub Pages 是一种静态站点托管服务，它直接从存储库 GitHub获取 HTML、CSS 和 JavaScript 文件，可以选择通过生成过程运行文件并发布网站。 你可以在GitHub Pages中查看[](https://github.com/collections/github-pages-examples)站点示例。

## GitHub Pages网站类型

有两种类型的 GitHub Pages 网站。 与用户或组织帐户关联的站点，以及特定项目的站点。

<table>
<thead>
<tr>
<th>properties</th>
<th>用户和组织站点</th>
<th>项目站点</th>
</tr>
</thead>
<tbody>
<tr>
<th>源文件</th>
<td>必须存储在名为 <code>&lt;owner&gt;.github.io</code> 的仓库中，其中 <code>&lt;owner&gt;</code> 表示个人或组织帐户名称</td>
<td>存储在包含项目代码的仓库中的某个文件夹内</td>
</tr>
<tr>
<th>限制</th>
<td>每个帐户最多一个网页站点</td>
<td>每个仓库最多一个页面站点</td>
</tr>

<tr>
<th>启用了子域隔离的默认站点位置</th>
<td><code>http(s)://pages.&lt;hostname&gt;/&lt;owner&gt;</code></td>
<td><code>http(s)://pages.&lt;hostname&gt;/&lt;owner&gt;/&lt;repository&gt;/</code></td>
</tr>
<tr>
<th>禁用了子域隔离的默认站点位置</th>
<td><code>http(s)://&lt;hostname&gt;/pages/&lt;username&gt;</code></td>
<td><code>http(s)://&lt;hostname&gt;/pages/&lt;owner&gt;/&lt;repository&gt;/</code></td>
</tr>

</tbody>
</table>

有关详细信息，请参阅 [启用子域隔离](/zh/enterprise-server@3.22/admin/configuring-settings/hardening-security-for-your-enterprise/enabling-subdomain-isolation) 或与站点管理员联系。

## 延伸阅读

* [
  GitHub Pages
  ](https://github.com/skills/github-pages) 在 GitHub Skills
* [存储库的 REST API 终结点](/zh/enterprise-server@3.22/rest/repos#pages)
* [为您的 GitHub Pages 网站配置发布源](/zh/enterprise-server@3.22/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site)