Skip to content

Make blog title h1 not h2 - #873

Merged
trallard merged 3 commits into
mainfrom
fix-h1s
Sep 2, 2024
Merged

trallard merged 3 commits into
mainfrom
fix-h1s

Conversation

@gabalafou

@gabalafou gabalafou commented Aug 23, 2024

Copy link
Copy Markdown
Contributor

The blog title displayed on the page should be wrapped in an <h1> not an <h2>.

Note: yes, this means that some blog posts will have two or more h1's. This will occur for blog posts in which the author used one or more level-1 markdown headings. Level-1 headings are the ones with a single hash (#) sign at the beginning of the line. But those are in the minority, and this fixes headings for most of the Labs blog posts. Plus for the blog posts in the minority, the headings were already broken, out of order. They would start with an h2, followed by an h1. Now it starts with an h1 followed by an h1. Not ideal but arguably less broken than before. A follow up PR (#874) will attempt to fix those blog posts.

@vercel

vercel Bot commented Aug 23, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
labs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 23, 2024 9:48am

@pavithraes pavithraes left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks! 🌻

@trallard
trallard merged commit c520833 into main Sep 2, 2024
@trallard
trallard deleted the fix-h1s branch September 2, 2024 11:51
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

Successfully merging this pull request may close these issues.

3 participants