-
Notifications
You must be signed in to change notification settings - Fork 29
Homepage titles printed twice #36
Description
Bug Report
Current behavior
Homepage titles are redundantly printed twice. The course description also shows a screen capture where the page title Welcome to my blog
is printed twice.
github-pages/course-details.md
Lines 21 to 25 in 6db77ad
## What you'll build | |
In this course, you'll build a simple personal blog site with GitHub Pages. You'll be able to add posts and share your blog with anyone. | |
 |
Reproduction
Steps to reproduce the behavior in the course:
- Follow the course steps up to Step 4: Customize Site Details, keeping
index.md
beginning with a heading. For example, the default file begins with# Welcome to my blog
. - Click the link to the published page, represented as
[here]({{ deploymentUrl }})
:github-pages/responses/03_change-theme.md
Lines 1 to 3 in 6db77ad
## Step 4: Customize Site Details Great work! You can see your published page [here]({{ deploymentUrl }}). If you don't see your changes right away, refresh the page. - See the beginning heading, e.g.
Welcome to my blog
, replicating itself twice.
Expected behavior
It is enough to print it just once like this:
Possible solution
Replace the default beginning heading # Welcome to my blog
in index.md
with a front matter like this:
-# Welcome to my blog
+---
+title: “Welcome to my blog”
+---
I’m glad you are here. I plan to talk about …
Or just delete the number sign (#) of the beginning heading to make sure that index.md
do not begin with a heading.
Additionally, add an instruction like “Write your homepage title in a front matter.” or a warning like “Make sure that index.md
do not begin with a heading without a page title front matter.” to responses/01_update-index.md
where users update index.md
.
github-pages/responses/01_update-index.md
Lines 7 to 13 in 6db77ad
Your repository has an `index.md` file so we can update it to include your personalized content. | |
### :keyboard: Activity: Create your homepage | |
1. Navigate to the **Code** tab of this repository, and browse to the `index.md` file, or click this link [here]({{ repoUrl }}/blob/main/index.md) | |
2. In the upper right corner, click the ![octicon-pencil] icon to edit the `index.md` file | |
3. Type the content you want on your homepage |
Additional context
I found the same issue and solution here and here.
I also made a post on Github Community Forum.