From 8cf42b7d0177ce568b76555fe42a201f1eba785f Mon Sep 17 00:00:00 2001 From: "lushirong.77" Date: Tue, 30 Jun 2026 17:16:58 +0800 Subject: [PATCH] docs(pages): clarify when to create _config.yml --- content/pages/quickstart.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/pages/quickstart.md b/content/pages/quickstart.md index 72ca207ffe52..085e3d48811d 100644 --- a/content/pages/quickstart.md +++ b/content/pages/quickstart.md @@ -38,9 +38,9 @@ In this guide, you'll create a user site at `.github.io`. By default, the title of your site is `username.github.io`. You can change the title by editing the `_config.yml` file in your repository. You can also add a description for your site. 1. Click the **Code** tab of your repository. -1. In the file list, click `_config.yml` to open the file. -1. Click {% octicon "pencil" aria-label="The edit icon" %} to edit the file. -1. The `_config.yml` file already contains a line that specifies the theme for your site. Add a new line with `title:` followed by the title you want. Add a new line with `description:` followed by the description you want. For example: +1. If the repository already contains a `_config.yml` file, click `_config.yml` to open it, then click {% octicon "pencil" aria-label="The edit icon" %} to edit the file. +1. If the repository doesn't contain a `_config.yml` file, select the **Add file** dropdown menu, click **Create new file**, and name the file `_config.yml`. +1. In `_config.yml`, add a line that specifies the theme for your site, then add a line with `title:` followed by the title you want and a line with `description:` followed by the description you want. For example: ```yaml theme: jekyll-theme-minimal