ldeso / hugo-flex

A lightweight Hugo theme leveraging CSS Flexbox.
https://ldeso.github.io/hugo-flex-demo/
Apache License 2.0
98 stars 50 forks source link

There should only be one h1 element on the home page #39

Open ldeso opened 2 months ago

ldeso commented 2 months ago

The theme should be updated to render a single h1 element per page.

The title of each post is currently rendered in an h1 element, no matter if the post is the only one on the page or if it is part of a list. This results in multiple h1 elements on the home page. This used to be valid HTML5, but it was retracted from the specification around 2022.

Related

ldeso commented 1 month ago

I asked on the forum and the lead developer of Hugo answered that this should be solved with https://github.com/gohugoio/hugo/issues/8680#issuecomment-1047726555

Edit: this is now possible using Page.Markup available from Hugo v0.134.0.