codesupport / website-frontend

The frontend for the CodeSupport website.
https://codesupport.dev
14 stars 10 forks source link

Multiple H1s on Page Due to Articles #127

Open nox7 opened 1 month ago

nox7 commented 1 month ago

Due to articles using MD, there is an obvious contextual disconnect between what is in the MD and what is actually rendered on the page. An article can container a markdown heading level 1, but the page itself is rendered with an H1 as the article title.

Duplicate H1s are not allowed in standard web documents and cause crawlers to be confused as to the outline title of a page's document.

E.g.: https://github.com/codesupport/website-frontend/blob/master/src/data/articles/automatic-watering-system-with-a-raspberry-pi.md

The markdown should be parsed down to shift all headers down one level, or articles should be edited and then instructed to not use the heading level 1.

LamboCreeper commented 1 month ago

I think it makes sense to shift down headings in articles down a level