clente / hugo-bearcub

🐻 A lightweight Hugo theme based on Bear Blog and Hugo Bear Blog
https://clente.github.io/hugo-bearcub/
MIT License
136 stars 55 forks source link

Validation error with <content> tag #27

Closed bmp closed 3 weeks ago

bmp commented 3 weeks ago

Hello, thank you for making the them. When I try to validate the produced/generated HTML using https://validator.w3.org/nu/ I get the following error

Element content not allowed as child of element [main](https://html.spec.whatwg.org/multipage/#the-main-element) in this context. (Suppressing further errors from this subtree.)

The checker points me to https://html.spec.whatwg.org/multipage/#the-main-element and https://html.spec.whatwg.org/multipage/#flow-content-2 as possibilities, I tried modifying <content> to <article> and <section>, but started throwing up other validation errors then.

Could you please let me know what would be an appropriate change?

clente commented 3 weeks ago

Sorry, I can't help you with that. I'm not familiar with this validator.