From 47c864e354628d166ac0c98b70e8eaa223c2f12d Mon Sep 17 00:00:00 2001 From: Ansh Goyal Date: Fri, 8 Mar 2024 09:37:59 +0000 Subject: [PATCH] add comment --- components/newsroom/NewsroomSection.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/newsroom/NewsroomSection.tsx b/components/newsroom/NewsroomSection.tsx index 48a1b2af257..c3a3e7df1cd 100644 --- a/components/newsroom/NewsroomSection.tsx +++ b/components/newsroom/NewsroomSection.tsx @@ -14,6 +14,9 @@ import FeaturedBlogPost from './FeaturedBlogPost'; export default function NewsroomSection() { const { t } = useTranslation('common'); + /** + * Retrieves all blog posts and news and sorts them based on their date and featured status. + */ const posts = getAllPosts() .blog.sort((i1, i2) => { const i1Date = new Date(i1.date);