Skip to content

Commit

Permalink
feat: add post cover to postrow
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukaii committed Oct 11, 2023
1 parent 548ed71 commit f8de3a1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions components/PostRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ export default function PostRow({ post, showAuthor = true }) {

return (
<div className="p-4 mb-8 border d-flex flex-items-start flex-column rounded-1 color-border-default">
{meta?.image && (
<div className="pb-4">
<img
src={meta?.image}
style={{ maxWidth: '100%', borderRadius: 6 }}
alt="cover image"
/>
</div>
)}

<div className="mb-2 text-mono color-fg-muted f5">
{date.format('LL')}
</div>
Expand Down

0 comments on commit f8de3a1

Please sign in to comment.