feat(writing): Featured 글 목록 상단 고정#62
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
개요
frontmatter의featured: true글을/writing페이지 최상단에 "Featured Posts" 섹션으로 표시한다.관련 이슈
Closes #61
변경 유형
변경 내용
PostFrontmatter에featured: boolean필드 추가 (draft패턴과 동일하게 항상 정규화)normalizeFrontmatter에raw.featured === true정규화 추가FeaturedPosts컴포넌트 신규 생성 (Server Component)return null)/writing페이지에서posts.filter(p => p.featured)로 분리 후<FeaturedPosts>렌더스크린샷
체크리스트
코드 품질
npm run build통과npm run lint통과npx tsc --noEmit통과기능 검증
featured: true글을 frontmatter에 추가하고 목록 상단 표시 확인접근성
<Image alt={post.title}>이미지 대체 텍스트<time dateTime={post.date}>시맨틱 마크업