Repository navigation
[DONE] 링크를 메신저나 X 에 붙이면 쪽마다 제 제목과 그림이 뜬다 - #97
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XcyiJssExyAsixL6TfR9mb
A page that set openGraph lost the root's picture, and a page that set none previewed as the home page; twitter:title was the home title on all. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XcyiJssExyAsixL6TfR9mb
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XcyiJssExyAsixL6TfR9mb
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XcyiJssExyAsixL6TfR9mb
patternflow-bot
marked this pull request as ready for review
October 16, 2026 15:50
This was referenced Oct 16, 2026
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.
dev / https://claude.ai/code/session_01XcyiJssExyAsixL6TfR9mb
링크를 메신저나 X 에 붙이면 이제 쪽마다 제 제목과 그림이 떠요. 지금은 /pattern 과 가이드 쪽이 그림 없이 나가고, 미리보기를 따로 두지 않은 /features 같은 쪽은 첫 화면으로 보여요. 머지하면 /build/breadboard 도 제 탭 제목을 얻어요.
좋아지는 것: 링크를 붙이면 쪽마다 제 제목과 그림이 뜬다 — 나눈 쪽이 첫 화면으로 보이지 않는다
할 일
dev빌드에서 아직 안 고쳐졌음을 확인src/app/metadata.test.tsdevmerge한 일
Next 는 메타데이터를 한 겹만 합쳐요. 쪽이
openGraph를 두면 뿌리 레이아웃의openGraph가 그림까지 통째로 빠지고, 두지 않으면 뿌리 것을 그대로 물려받아요. 뿌리에 첫 화면의 제목과 주소가 있었고twitter.title도 있어서, Next 가 쪽의og:title을twitter:title로 옮겨 주는 길도 막혀 있었어요(node_modules/next/dist/lib/metadata/metadata-resolution-primitives.js의postProcessMetadata).src/lib/siteMetadata.ts: 모든 쪽이 나누는SITE_OPEN_GRAPH(type,siteName,og-image.png). Next 문서의 「Overwriting fields」가 권하는 꼴이에요.src/app/layout.tsx:openGraph는SITE_OPEN_GRAPH만,twitter는card만. 제목과 주소가 없으니 미리보기를 안 둔 쪽은 제title과description을 쓰고, X 카드는 쪽의og:를 따라가요.src/app/page.tsx: 첫 화면의 미리보기 글을 뿌리에서 옮겼어요. 글자 하나 안 바뀌었어요./pattern,/build,/inside,/inside/[build], 가이드(components/guide/meta.ts):SITE_OPEN_GRAPH를 펼쳐 넣어 그림을 지켜요. 지도의 빌드는 사진이 있으면 사진, 없으면 사이트 그림이에요./features,/contact,/terms,/update:og:url이 제 주소예요.src/app/build/breadboard/layout.tsx(새 파일):page.tsx가 클라이언트 컴포넌트라 메타데이터를 못 내보내서, 레이아웃이 제목·설명·canonical·미리보기를 둬요. 설명은 쪽 머리글에서 가져왔어요.src/app/sitemap.ts:/build/breadboard와/update를 더했어요.증거
빌드한 HTML(
.next/server/app/*.html)에서 읽은 값이에요. 앞은dev(d6d4eb1), 뒤는 이 브랜치예요./pattern/guide/build/guide/ko/features/update/editions/build/breadboard/inside/seunghun-korea/앞에서
twitter:title은/말고도 표의 여덟 쪽 다 「Patternflow — An LED synthesizer」였어요.og:url은/features,/contact,/terms,/update,/build/breadboard에서https://patternflow.work이던 것이 제 주소가 됐어요./editions,/roadmap,/journal은 고치지 않은 파일이라og:url이 첫 화면 주소에서 빠졌어요. 첫 화면은og:site_name줄과twitter:image의 크기 줄이 늘었을 뿐 나머지 태그는 같아요. sitemap 은<url>116개이고/build/breadboard,/update가 들어 있어요.새 시험은 13건이에요. 뿌리 레이아웃,
/pattern, 가이드 메타를dev판으로 되돌리고 돌리면 3건이 빨개져요.web/에서 돌린 다섯의 끝줄이에요.화면 사진은 찍지 않았어요. 바뀐 것은
<head>의 메타 태그뿐이라 390px 와 1440px 화면에 보이는 것이 같아요./build/breadboard의 탭 제목은 위 표의 og:title 과 같은 「Breadboard Build Guide / Patternflow」예요.실행법
가정
/editions,/roadmap,/journal,/compliance와 커뮤니티 쪽은 창작자 영역이거나 목록 밖이라 손대지 않았고, 뿌리 레이아웃을 고친 것만으로 제 제목과 그림을 얻어요. 이 쪽들엔og:url이 없어요. 첫 화면 주소를 다는 것보다 없는 편이 나아요. 페이스북은og:url을 그 쪽의 정본 주소로 읽어서, 첫 화면 주소를 단 쪽을 첫 화면 카드로 묶어요.og:site_name(「Patternflow」)을 모든 쪽에 더했어요. 슬랙은 이 값을 카드 위에 사이트 이름으로 보여 줘요./features,/contact,/terms,/update,/build/breadboard는og:title을 따로 적지 않고 쪽의title을 쓰게 뒀어요. 같은 글을 두 곳에 두지 않으려고요.app/shared-metadata에 두지 않고src/lib/siteMetadata.ts에 뒀어요.components/guide/meta.ts도 써야 하는데components/가app/를 부르는 곳이 레포에 없어서예요. 시험은 거꾸로lib/가components/·app/를 못 부르는 lint 규칙 때문에src/app/metadata.test.ts에 뒀어요(첫 커밋의 Web CI 가 그 규칙으로 빨개졌고 다음 커밋에서 옮겼어요)./build/breadboard0.5,/update0.4 로 정했어요./contact,/terms,/update는alternates.canonical이 없어요(/features,/editions엔 있어요).Changelog
Web
/featuresand/editions, previewed as the home page.twitter:titlewas the home page's everywhere./build/breadboardhas its own title now, and it and/updateare in the sitemap.바퀴
바퀴 2 · 후보 2 「링크를 메신저나 X 에 붙이면 쪽마다 제 제목과 그림이 뜬다」
다음 바퀴
preventDefault()가 먹지 않아요. 같은 Lab 의useTimelineZoom.ts에 고친 꼴이 있어요.🤖 Generated with Claude Code
https://claude.ai/code/session_01XcyiJssExyAsixL6TfR9mb