Create a GitLab Pages website from a project template

Tier: Free, Premium, Ultimate Offering: GitLab.com, Self-managed, GitLab Dedicated

GitLab provides templates for the most popular Static Site Generators (SSGs). You can create a new project from a template and run the CI/CD pipeline to generate a Pages website.

Use a template when you want to test GitLab Pages or start a new project that’s already configured to generate a Pages site.

  1. On the left sidebar, at the top, select Create new () and New project/repository.
  2. Select Create from Template.
  3. Next to one of the templates starting with Pages, select Use template.

    Project templates for Pages

  4. Complete the form and select Create project.
  5. On the left sidebar, select Build > Pipelines and select Run pipeline to trigger GitLab CI/CD to build and deploy your site.

When the pipeline is finished, go to Deploy > Pages to find the link to your Pages website.

For every change pushed to your repository, GitLab CI/CD runs a new pipeline that immediately publishes your changes to the Pages site.

To view the HTML and other assets that were created for the site, download the job artifacts.