- Issue created by @sime
- Assigned to RichardGaunt
I have duplicate <main ...><section class="ct-layout__main" >
in my code, one in the other. Having multiple <main
elements goes against the html5 spec.
There is one in the component library which is included from page.html.twig.
https://git.drupalcode.org/project/civictheme/-/blob/1.x/lib/uikit/compo...
There is another one coming from this template.
https://git.drupalcode.org/project/civictheme/-/blob/1.x/templates/layou...
Assuming that you site is including the layout.twig which for example it will if page.html.twig is being used (check in the twig debug), enable layout builder for the node display and choose the civictheme_three_columns
layout (which adds another <main>.
.
Civictheme layout plugins shouldn't define "main" without at least some logic checking.
Active
1.8
Code