vercel / nextjs-portfolio-starter

Easily create a portfolio with Next.js and Markdown.
https://demo.vercel.blog
664 stars 263 forks source link

Duplicate h1 in pages/index.mdx #21

Open ezbeazy opened 2 years ago

ezbeazy commented 2 years ago

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

Romeoprov commented 1 year ago

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.

TaisukeSeki commented 1 year ago

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

fajarspace commented 1 year ago

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" }

TINKPA commented 11 months ago

Ok same issue: Could anybody help me out?