nextjs-portfolio-starter icon indicating copy to clipboard operation
nextjs-portfolio-starter copied to clipboard

Duplicate h1 in pages/index.mdx

Open ezbeazy opened this issue 2 years ago • 4 comments

The .mdx page templates set the page title and h1 with title: About. The template specifies # Your Name Here, however, this causes a duplicate h1 and results in # Your Name Here to not be rendered on the page and for the page title and h1 to be whatever is specified for title: .

https://demo.vercel.blog/ seems to function as intended, replacing the set title: About with # Your Name Here, in the index.mdx page temple.

Am I missing something or is this a function of creating a meta.json in the pages/ directory?

*Note When cloning this repo, the issue is not present.

The issue IS present when installing via yarn create next-app --example blog my-blog or yarn add next nextra react react-dom yarn add nextra-theme-blog

ezbeazy avatar Aug 19 '22 15:08 ezbeazy

I have the same problem. I'm really new to web development and I just want to use markfown for a blog I have to finish by next week lol.

Romeoprov avatar Mar 30 '23 23:03 Romeoprov

Ok so related issue: Now # Your Name Here is ignored and page only shows contents of title: . Could anybody help me out?

TaisukeSeki avatar Aug 10 '23 09:08 TaisukeSeki

Ok so related issue: Now # Your Name Here is ignored and page only shows contents of title: . Could anybody help me out? You can define how the pages are shown in the sidebar via the _meta.json file: { "index": "My Homepage", "contact": "Contact Us", "about": "About Us" }

fajarspace avatar Sep 18 '23 16:09 fajarspace

Ok same issue: Could anybody help me out?

TINKPA avatar Oct 25 '23 07:10 TINKPA