fix: '날씨각' 검색 요약에 게시물 글이 뽑히던 것 (게시물 data-nosnippet, 홈 설명을 '날씨각은'으로 시작)

This commit is contained in:
minaChoi committed 2026-10-14 10:18:17 +09:00
1 parent 882932a51b
commit ba94a381a9
2 files changed
+6 -5

No files matched your search

+4 -4
View File
@@ -15,14 +15,14 @@
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no, viewport-fit=cover" />
<meta name="theme-color" content="#d6ebff" />
<meta name="description" content="세차각·빨래각·러닝각처럼 오늘 날씨에 맞는 일을 점수로. 노을이 예쁜 시간과 명소, 이번 주말 가까운 축제까지 날씨각에서 확인하세요." />
<meta name="description" content="날씨각은 세차각·빨래각·러닝각처럼 오늘 날씨에 맞는 일을 점수로 알려 줘요. 노을이 예쁜 시간과 명소, 이번 주말 가까운 축제까지 확인하세요." />
<meta name="keywords" content="날씨각, 오늘 날씨, 날씨 지수, 세차하기 좋은 날, 빨래하기 좋은 날, 러닝하기 좋은 날씨, 오늘 노을, 노을 시간, 일몰 시간, 노을 명소, 주말 날씨, 주말 나들이, 이번 주말 축제, 미세먼지, 오늘 밤 달" />
<title>날씨각 · 오늘 날씨 지수, 노을, 주말 행사</title>
<link rel="manifest" href="/manifest.webmanifest" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="날씨각" />
<meta property="og:title" content="날씨각 · 오늘 날씨 지수, 노을, 주말 행사" />
<meta property="og:description" content="세차각·빨래각·러닝각처럼 오늘 날씨에 맞는 일을 점수로. 노을이 예쁜 시간과 명소, 이번 주말 가까운 축제까지 날씨각에서 확인하세요." />
<meta property="og:description" content="날씨각은 세차각·빨래각·러닝각처럼 오늘 날씨에 맞는 일을 점수로 알려 줘요. 노을이 예쁜 시간과 명소, 이번 주말 가까운 축제까지 확인하세요." />
<meta property="og:url" content="%VITE_SITE_URL%/" />
<link rel="canonical" href="%VITE_SITE_URL%/" />
<meta property="og:image" content="%VITE_SITE_URL%/og.png" />
@@ -31,7 +31,7 @@
<meta property="og:image:alt" content="날씨각, 오늘 날씨에 맞는 일을 점수로 알려 주는 서비스" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="날씨각 · 오늘 날씨 지수, 노을, 주말 행사" />
<meta name="twitter:description" content="세차각·빨래각·러닝각처럼 오늘 날씨에 맞는 일을 점수로. 노을이 예쁜 시간과 명소, 이번 주말 가까운 축제까지 날씨각에서 확인하세요." />
<meta name="twitter:description" content="날씨각은 세차각·빨래각·러닝각처럼 오늘 날씨에 맞는 일을 점수로 알려 줘요. 노을이 예쁜 시간과 명소, 이번 주말 가까운 축제까지 확인하세요." />
<meta name="twitter:image" content="%VITE_SITE_URL%/og.png" />
<meta property="og:locale" content="ko_KR" />
<meta name="google-site-verification" content="ageFc5cYyqCTlRxsQTu4d3uetA4WG7y7yUPR1f7muVk" />
@@ -60,7 +60,7 @@
"@type": "WebApplication",
"name": "날씨각",
"url": "%VITE_SITE_URL%/",
"description": "세차각·빨래각·러닝각처럼 오늘 날씨에 맞는 일을 점수로. 노을이 예쁜 시간과 명소, 이번 주말 가까운 축제까지 날씨각에서 확인하세요.",
"description": "날씨각은 세차각·빨래각·러닝각처럼 오늘 날씨에 맞는 일을 점수로 알려 줘요. 노을이 예쁜 시간과 명소, 이번 주말 가까운 축제까지 확인하세요.",
"applicationCategory": "WeatherApplication",
"operatingSystem": "All",
"inLanguage": "ko-KR",
+2 -1
View File
@@ -269,8 +269,9 @@ function LineCard({ post }: PostProps) {
}
/** 인스타식 게시물: 옆으로 넘기는 슬라이드, 두 번 눌러 좋아요 */
// data-nosnippet: 검색 결과 요약에 게시물 글('날씨각' + 오늘 문장)이 대신 뽑혀 나오지 않게
export function PostCard({ post }: PostProps) {
return post.size === 'line' ? <LineCard post={post} /> : <FullCard post={post} />
return <div data-nosnippet="">{post.size === 'line' ? <LineCard post={post} /> : <FullCard post={post} />}</div>
}
/** FullCard 와 같은 틀(머리줄·4:5 그림·버튼줄·글 한 줄)의 스켈레톤 */