HermanMartinus / bearblog

Free, no-nonsense, super fast blogging.
MIT License
2.37k stars 73 forks source link

Duplicate H1 tags on posts / pages #218

Closed jliikala closed 2 months ago

jliikala commented 1 year ago

Hi Herman,

I noticed that there seem to be two H1 elements on post / pages layout. The header blog title uses one and also the post title uses it. As far as I know, it's a bad SEO practice to have multiple H1 tags on a page.

Maybe just remove the h1 element from the header blog title entirely or at least remove it when on post / page layout which also uses that element?

Cheers! :)

HermanMartinus commented 1 year ago

This has been logged as an issue a few times before. I've dug deep into it and overall it doesn't negatively affect SEO. It may have back when search engines relied on structured data to make sense of a page, but they've become much more advanced of late.

And while it is against standard there are too many blogs that have their styling set by the h1 element that updating the overall structure of the page would break a lot of people's styling.

jliikala commented 1 year ago

Thanks for the update Herman. Ah yes, did a bit of recent reading on the topic last week and that indeed seem to be the case today (and yes, let's not break everyone's blogs because of this) . No worries, it's not a big issue anyway, just something that caught my eye based on "old habits" 😄