fix: 지역 날씨 페이지 소개 글(제목·요약·자주 묻는 질문)을 앱이 뜬 뒤에도 피드 아래에 남김 — 구글은 JS 실행 뒤 화면으로 색인하는데 앱이 #root 를 덮어 '성남 오늘 날씨' 글이 사라졌음

This commit is contained in:
minaChoi committed 2026-10-29 11:37:52 +09:00
1 parent f7a2a98e94
commit 9fdd299251
3 files changed
+26 -8

No files matched your search

+9 -1
View File
@@ -30,7 +30,7 @@ import { usePinnedLike } from './pinnedLike'
import { ShortsRail } from './Shorts'
import { FeedComposer, NearTalks, TalkGroup } from './talk'
import { topicName, useTalkGroups, useTodayMyTalks } from './talkState'
import { useRegion } from './regionContext'
import { useLandingAbout, useRegion } from './regionContext'
import { useSheet } from './sheetContext'
import { useSky } from './skyContext'
import { DayShareCard, DayShareGrid, GakShareCard, type DayShare } from './shareCards'
@@ -577,6 +577,7 @@ function SeasonBand({ news }: { news: BandArticle[] }) {
export function TodayPage() {
const { region } = useRegion()
const about = useLandingAbout()
const feed = useQuery(getFeedOptions({ query: { region: region.code } }))
const today = useQuery(getWeatherTodayOptions({ query: { region: region.code } }))
const { preview } = useSky()
@@ -682,6 +683,13 @@ export function TodayPage() {
{feed.isSuccess && spreadLeft}
{feed.isSuccess && bandAt.filter(([at]) => at > posts.length).map(([at, node]) => <Fragment key={at}>{node}</Fragment>)}
</div>
{about && (
<div
data-nosnippet
className="mx-4 mt-6 mb-4 text-[13px] leading-relaxed text-(--ink3) [&_a]:underline [&_h1]:mb-1 [&_h1]:text-[15px] [&_h1]:font-bold [&_h1]:text-(--ink2) [&_h2]:mt-4 [&_h2]:mb-1 [&_h2]:text-[14px] [&_h2]:font-bold [&_h2]:text-(--ink2) [&_h3]:mt-2 [&_h3]:font-semibold [&_li]:inline [&_li]:mr-2 [&_p]:my-1 [&_ul]:m-0 [&_ul]:p-0"
dangerouslySetInnerHTML={{ __html: about }}
/>
)}
</section>
)
}