Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] 블로그 아티클 시간 순 정렬 #157

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gomx3
Copy link

@gomx3 gomx3 commented Feb 23, 2025

Summary

블로그 Development 탭의 아티클 목록을 시간 순으로 정렬 처리했습니다. #154

Description

  • 아티클 목록을 최신 업데이트 날짜(BLOG_UPDATED_AT) 기준으로 정렬 처리

  • getSortedArticleByDate 함수를 생성

  • 필터링된 게시글 목록(filteredArticle)을 정렬된 상태로 sortedArticle에 저장

  • 노션에서 어떤 식으로 처리되는 것인지 모르겠으나 BLOG_CREATED_AT보다 BLOG_UPDATED_AT이 작성자가 아티클을 등록한 날짜에 더 가깝다고 판단하여 정렬 기준으로 선정했습니다.

  • 아티클 카드에 사용하는 날짜가 BLOG_UPDATED_AT인 것을 확인했습니다. (/blog/_components/card/DevelopCard.tsx)


전후 비교

  • 정렬 전

image

  • 정렬 후

image

@gomx3 gomx3 added the fix Something isn't working label Feb 23, 2025
@gomx3 gomx3 self-assigned this Feb 23, 2025
Copy link

netlify bot commented Feb 23, 2025

👷 Deploy request for gdsc-cau pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 636795f

@gomx3 gomx3 linked an issue Feb 23, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FIX] 블로그 아티클 시간 순 정렬
1 participant