Skip to content

Commit

Permalink
Merge pull request #429 from sharemindteam/feat/helmet_426
Browse files Browse the repository at this point in the history
[Fix] React Helmet 검색엔진 반영 안되는 이슈 배포 테스트
  • Loading branch information
kyuhho authored Dec 23, 2024
2 parents a2ec0d1 + 18d3150 commit 88e4476
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
5 changes: 0 additions & 5 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@
/>

<meta name="theme-color" content="#ffffff" />
<meta
name="description"
content="나와 비슷한 경험을 공유하는 사람들과 익명으로 부담없이 연애상담을 나눠보세요."
/>

<link rel="apple-touch-icon" href="%PUBLIC_URL%/favicon.ico" />
<!--
Expand All @@ -104,7 +100,6 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>셰어마인드 - 경험 공유 연애상담 플랫폼</title>
</head>

<body>
Expand Down
8 changes: 8 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
import Router from 'Router';
import { Helmet } from 'react-helmet';

function App() {
return (
<div className="App" style={{ height: '100%', width: '100%' }}>
<Helmet>
<title>셰어마인드 - 경험 공유 연애상담 플랫폼</title>
<meta
name="description"
content="나와 비슷한 경험을 공유하는 사람들과 익명으로 부담없이 연애상담을 나눠보세요."
/>
</Helmet>
<Router />
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,13 @@ function MainQuestionSection() {

return (
<>
<Helmet>
<title>{`${card?.title} | 셰어마인드 공개 상담`}</title>
<meta name="description" content={card?.content} />
</Helmet>
{card && (
<Helmet>
<title>{`${card?.title} | 셰어마인드 공개 상담`}</title>
<meta name="description" content={card?.content} />
</Helmet>
)}

<MainQuestionWrapper>
<MainQuestionText>
<div className="row1">
Expand Down

0 comments on commit 88e4476

Please sign in to comment.