added sidebar

This commit is contained in:
philip-ellis-sp
2023-05-25 09:59:08 -05:00
parent ee79eb9718
commit df94a5f75b
10 changed files with 70 additions and 33 deletions

View File

@@ -38,6 +38,7 @@ export default function BlogCards() {
title={a.title}
views={a.views}
replies={a.replies}
readTime={a.readTime}
creatorImage={a.creatorImage}></BlogCard>
})}
</div>
@@ -67,6 +68,7 @@ async function getPostList(topic) {
liked: topic.like_count,
replies: fullTopic.posts_count,
solution: topic.has_accepted_answer,
readTime: parseInt(fullTopic.word_count/100),
};
}