Problem
_layouts/post.html appends the post date to .page-header via a DOMContentLoaded script. The date is invisible to crawlers and non-JS readers and causes layout shift.
Proposal
Render the <time> element with plain Liquid in the layout (or in the posts' .page-header markup) and drop the script. Post specs asserting the date should keep passing; verify they do not depend on the JS timing.
Please read how to contribute
Problem
_layouts/post.htmlappends the post date to.page-headervia aDOMContentLoadedscript. The date is invisible to crawlers and non-JS readers and causes layout shift.Proposal
Render the
<time>element with plain Liquid in the layout (or in the posts'.page-headermarkup) and drop the script. Post specs asserting the date should keep passing; verify they do not depend on the JS timing.Please read how to contribute