Skip to content

Fix up the post date component to show the readable name #63

Closed
@caendesilva

Description

The date component for articles is still using a lot of boilerplate.
Right now it looks like this

<time itemprop="dateCreated datePublished" datetime="2022-03-25 20:49" title="2022-03-25 20:49">2022-03-25 20:49</time>

which is not very meaningful since the same string is repeated 3 times.

In the post excerpt it is displayed as Mar 25th, 2022 which is more human readable.

The way the component was intended to be made (but was not yet implemented) was that the datetime is a machine readable timestamp with timezone identifier. The title is a long format human readable time, and the default display is the shorthand used in the excerpt.

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions