Skip to content

Commit

Permalink
Merge branch 'main' into new-pages-for-winglibs
Browse files Browse the repository at this point in the history
  • Loading branch information
boyney123 authored Sep 23, 2024
2 parents 45d7cf5 + a98ec31 commit c24bd15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/theme/BlogListPage/ListItem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const ListItem = ({ content }) => {

const {authors} = metadata;

const formattedDate = new Date(metadata.date).toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' });

const imageUrl = frontMatter.image ?? 'https://uploads-ssl.webflow.com/63720940a94e098b4e2a542b/65d32406856a3e7dd9629299_blog-banner-default2.png';

return (
Expand All @@ -26,7 +28,7 @@ const ListItem = ({ content }) => {
</Link>
</div>
<div className="card__body">
<small>{metadata.formattedDate}</small>
<small>{formattedDate}</small>
<Link to={metadata.permalink}>
<h3 className={styles.title}>{metadata.title}</h3>
</Link>
Expand Down

0 comments on commit c24bd15

Please sign in to comment.