uswds-jekyll
uswds-jekyll copied to clipboard
remove duplicate main element and IDs
the default layout calls in the page layout inside a <main> element, so the main inside the page layout needed to be removed.
Now I'm wondering if I got the problem backwards...
pagelayouts have amainelement inside the content, whilepostlayouts do not have amain.- The
defaultlayout uses a conditional which puts everything except apostinside its ownmaincontent.
I think the default layout conditional - linked here should instead be putting anything except a page inside the main.
I could use another pair of brain hemispheres from someone like @thisisdano or @afeld to tell me if this makes sense. If so, then my PR can be closed without merging, and I'll open a new one with the one change to the default layout.