Skip to content

feat(writing): Featured 글 목록 상단 고정#62

Merged
emayom merged 1 commit into
mainfrom
feat/#61-featured-post-pinning
Jun 29, 2026
Merged

feat(writing): Featured 글 목록 상단 고정#62
emayom merged 1 commit into
mainfrom
feat/#61-featured-post-pinning

Conversation

@emayom

@emayom emayom commented Jun 29, 2026

Copy link
Copy Markdown
Owner

개요

frontmatterfeatured: true 글을 /writing 페이지 최상단에 "Featured Posts" 섹션으로 표시한다.

관련 이슈

Closes #61

변경 유형

  • feat

변경 내용

  • PostFrontmatterfeatured: boolean 필드 추가 (draft 패턴과 동일하게 항상 정규화)
  • normalizeFrontmatterraw.featured === true 정규화 추가
  • FeaturedPosts 컴포넌트 신규 생성 (Server Component)
    • featured 글 없으면 섹션 자체 숨김 (return null)
    • thumbnail 유무에 따라 이미지 영역 분기
    • CSS grid: 모바일 1열 / sm 이상 3열
  • /writing 페이지에서 posts.filter(p => p.featured)로 분리 후 <FeaturedPosts> 렌더
  • 태그 필터는 All Posts 섹션에만 적용 (Featured 섹션과 완전 독립)

스크린샷

Before After
PostList만 표시 Featured Posts 섹션 + All Posts 순서로 표시

체크리스트

코드 품질

  • npm run build 통과
  • npm run lint 통과
  • npx tsc --noEmit 통과

기능 검증

  • featured: true 글을 frontmatter에 추가하고 목록 상단 표시 확인
  • Featured 글 없을 때 섹션 미표시 확인
  • 모바일/데스크탑 grid 레이아웃 확인

접근성

  • <Image alt={post.title}> 이미지 대체 텍스트
  • <time dateTime={post.date}> 시맨틱 마크업

@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment Jun 29, 2026 4:05am

@emayom emayom merged commit 3d066b6 into main Jun 29, 2026
3 checks passed
@emayom emayom deleted the feat/#61-featured-post-pinning branch June 29, 2026 04:52
@emayom emayom added the enhancement New feature or request label Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(post-list): Featured 글 목록 상단 고정

1 participant