Skip to content

Post date is injected with client-side JavaScript #223

Description

@aistomin

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions