Skip to content

Commit

Permalink
fix the #42
Browse files Browse the repository at this point in the history
  • Loading branch information
officialrajdeepsingh committed Oct 29, 2023
1 parent 79c07ad commit 9066e99
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/section-blog-theme/components/Layouts/Tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,16 @@ export function Tag({ pageOpts, themeConfig, children }: { pageOpts: PageOpts; t
<div className="mx-auto my-24 divide-y divide-slate-700 grid-cols-1 grid max-w-[724px] lg:max-w-[1024px] gap-4">
{posts?.map(
(post) => {

let getDate = dayjs(post.frontMatter.date).format(DateFormat? DateFormat : "MMM DD, YYYY");

return (
<ArticleCard
key={post.frontMatter.date + post.frontMatter.title}
title={post.frontMatter.title}
description={post.frontMatter.description}
tag={post.frontMatter.tags}
date={dayjs(post.frontMatter.date).format(DateFormat)}
date={getDate}
URL={post.route}
author={post.frontMatter?.author}
/>
Expand Down

0 comments on commit 9066e99

Please sign in to comment.