Skip to main content

What is Pages?

You can use Pages to host a website about yourself, your organization, or your project directly from a repository on .

谁可以使用此功能?

Pages 适用于具有 Free 和组织的 Free 的公共存储库,以及具有 Pro、 Team、 Enterprise Cloud 和 Enterprise Server 的公共和专用存储库。 有关详细信息,请参阅 的计划

Pages 现在使用 Actions 来执行 Jekyll 构建。 使用分支作为构建源时,如果要使用内置的 Jekyll 工作流,则必须在存储库中启用 Actions。 或者,如果 Actions 不可用或已禁用,则将 .nojekyll 文件添加到源分支的根目录将绕过 Jekyll 构建过程并直接部署内容。 有关启用 Actions 的详细信息,请参阅“管理存储库的 Actions 设置”。

About Pages

Pages is a static site hosting service that takes HTML, CSS, and JavaScript files straight from a repository on , optionally runs the files through a build process, and publishes a website. You can see examples of Pages sites in the Pages examples collection.

Types of Pages sites

There are two types of Pages sites. Sites associated with a user or organization account, and sites for a specific project.

PropertyUser and organization sitesProject sites
Source filesMust be stored in a repository named <owner>..io, where <owner> is the personal or organization account nameStored in a folder within the repository that contains the project's code
LimitsMaximum of one pages site per accountMaximum of one pages site per repository
Default site locationhttp(s)://<owner>..iohttp(s)://<owner>..io/<repositoryname>

Hosting on your own custom domain

You can host your site on 's .io domain or your own custom domain. See 配置 Pages 站点的自定义域.

Data collection

When a Pages site is visited, the visitor's IP address is logged and stored for security purposes, regardless of whether the visitor has signed into or not. For more information about 's security practices, see Privacy Statement.

Further reading