Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Homepage titles printed twice #36

@yhkee0404

Description

@yhkee0404

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.

## 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.
![Screenshot_2020-02-25 Welcome to my blog](https://user-images.githubusercontent.com/1221423/75267083-224fd180-57a8-11ea-8acf-64c1ee6d950f.png)

Screenshot_2020-02-25 Welcome to my blog

Reproduction
Steps to reproduce the behavior in the course:

  1. 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.
  2. Click the link to the published page, represented as [here]({{ deploymentUrl }}):
    ## 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.
  3. 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:
B4DBB53D-91A9-4E50-A0D8-3D25E3CAD999

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.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy