Skip to content

Commit

Permalink
Merge pull request #95 from shandianchengzi/master
Browse files Browse the repository at this point in the history
posts: fixup.
  • Loading branch information
shandianchengzi committed Jul 11, 2024
2 parents 6573d09 + 6059c5a commit 6744799
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pages/src/components/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ export default function Card({ id, href, frontmatter, secHeading = true, body, p
)
)}
</a>
<p {...headerProps}>{parseDate(published_date.toString())}</p>
{
publishCard && <p {...headerProps}>{parseDate(published_date.toString())}</p>
}
{
status === 'collected' && <div className="px-2 mx-2 text-slate-500">
{body && body.split(/\s/g).length}
Expand All @@ -103,7 +105,9 @@ export default function Card({ id, href, frontmatter, secHeading = true, body, p

</div>
}
<hr className="my-4 border-skin-lightline" />
{
publishCard && <hr className="my-4 border-skin-lightline" />
}
</li>
);
}
Expand Down

0 comments on commit 6744799

Please sign in to comment.