Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate h1 in pages/index.mdx #21

Open
ezbeazy opened this issue Aug 19, 2022 · 4 comments
Open

Duplicate h1 in pages/index.mdx #21

ezbeazy opened this issue Aug 19, 2022 · 4 comments

Comments

@ezbeazy
Copy link

ezbeazy commented Aug 19, 2022

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
Copy link

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
Copy link

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

@fajarspace
Copy link

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
Copy link

TINKPA commented Oct 25, 2023

Ok same issue:
Could anybody help me out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants