Skip to content

Commit

Permalink
Add datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolai-shabalin committed Dec 7, 2024
1 parent fb887b8 commit f4b99d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Property.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const { property } = Astro.props;
---
<article class="property">
<h3>{property.type === '@' ? `${property.type}${property.name}` : `${property.type}: ${property.name}`}</h3>
<time>{new Date(property.date).toLocaleDateString('ru-RU')}</time>
<time datetime={property.date}>{new Date(property.date).toLocaleDateString('ru-RU')}</time>
<div>
{property.specUrl && <a href={property.specUrl}>Спецификация</a>}
{property.mdnUrl && <a href={property.mdnUrl}>MDN</a>}
Expand Down

0 comments on commit f4b99d8

Please sign in to comment.