fix: 검색 결과 요약에 화면 글(시간대 칸·행사·게시물)이 뽑히던 것 (앱 영역 전체 data-nosnippet, 요약은 description 으로)

This commit is contained in:
minaChoi committed 2026-10-14 10:48:49 +09:00
1 parent ba94a381a9
commit 0d6ab29552
2 files changed
+4 -4

No files matched your search

+3 -2
View File
@@ -98,11 +98,12 @@
</head>
<body>
<!-- 앱이 뜨기 전 첫 화면: 정적 소개 글이 잠깐 보이지 않게 덮는다. 앱이 뜨면 지운다 -->
<div id="boot" role="status" style="position:fixed;inset:0;z-index:60;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#d6ebff;color:#28304a;font:19px Jua,sans-serif">
<div id="boot" data-nosnippet role="status" style="position:fixed;inset:0;z-index:60;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#d6ebff;color:#28304a;font:19px Jua,sans-serif">
<img src="/icons/rabbit.png" alt="" width="88" height="88" />
<p style="margin:0">날씨 불러오는 중…</p>
</div>
<div id="root">
<!-- 검색 결과 요약은 화면 글 대신 description 을 쓰게 한다 (지역 페이지는 서버가 오늘 날씨로 채움) -->
<div id="root" data-nosnippet>
<main>
<h1>날씨각</h1>
<p>오늘 하고 싶은 일이 날씨에 맞는지 점수로 알려 드려요. 세차, 빨래, 러닝, 피크닉처럼 일상의 일을 우리 동네 날씨로 바로 확인하세요.</p>
+1 -2
View File
@@ -269,9 +269,8 @@ function LineCard({ post }: PostProps) {
}
/** 인스타식 게시물: 옆으로 넘기는 슬라이드, 두 번 눌러 좋아요 */
// data-nosnippet: 검색 결과 요약에 게시물 글('날씨각' + 오늘 문장)이 대신 뽑혀 나오지 않게
export function PostCard({ post }: PostProps) {
return <div data-nosnippet="">{post.size === 'line' ? <LineCard post={post} /> : <FullCard post={post} />}</div>
return post.size === 'line' ? <LineCard post={post} /> : <FullCard post={post} />
}
/** FullCard 와 같은 틀(머리줄·4:5 그림·버튼줄·글 한 줄)의 스켈레톤 */