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

refactor(v2): replace h1 tag with h2 in blog list pages #1987

Merged
merged 1 commit into from
Nov 13, 2019

Conversation

lex111
Copy link
Contributor

@lex111 lex111 commented Nov 13, 2019

Motivation

A continuation of #1962.

The h1 tag should always be one on a page, so only h2 should be used in posts lists.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

See HTML markup, no UI changes.

@lex111 lex111 added the pr: polish This PR adds a very minor behavior improvement that users will enjoy. label Nov 13, 2019
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Nov 13, 2019
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit 86477fa

https://deploy-preview-1987--docusaurus-2.netlify.com

Copy link
Contributor

@yangshun yangshun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was actually modelling after Medium's blog posts list page, where they used h1 even within a list. We could change it to h2.

@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-preview ready!

Built with commit 86477fa

https://deploy-preview-1987--docusaurus-preview.netlify.com

@lex111
Copy link
Contributor Author

lex111 commented Nov 13, 2019

@yangshun I don’t see this: lists pages smth usually do not use h1, this is bad for SEO because the web page should not have more than one h1 element. Refusing h1 on the doc item page is also bad, this tag is important.

@yangshun yangshun merged commit 0f0352d into facebook:master Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: polish This PR adds a very minor behavior improvement that users will enjoy.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants