Skip to content

Commit

Permalink
fix: 정적 메타 태그로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
im-na0 committed Jul 12, 2024
1 parent c90a8df commit c5a6f1e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
20 changes: 20 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,26 @@
href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable-dynamic-subset.min.css"
/>
<title>퍼센트 호텔</title>
<meta
name="description"
content="못 가게된 숙박권 더 이상 돈 날리지 말고, 비싼 호캉스도 믿고 거래하자! 특가보다 저렴한 호캉스 예약."
/>
<meta property="og:url" content="/" />
<meta property="og:type" content="website" />
<meta property="og:title" content="퍼센트 호텔" />
<meta property="og:site_name" content="퍼센트 호텔" />
<meta property="og:image" content="/og-img.png" />
<meta
property="og:description"
content="못 가게된 숙박권 더 이상 돈 날리지 말고, 비싼 호캉스도 믿고 거래하자! 특가보다 저렴한 호캉스 예약."
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="퍼센트 호텔" />
<meta
name="twitter:description"
content="못 가게된 숙박권 더 이상 돈 날리지 말고, 비싼 호캉스도 믿고 거래하자! 특가보다 저렴한 호캉스 예약."
/>
<meta name="twitter:image" content="/assets/logos/main_logo.svg" />
<meta
name="google-site-verification"
content="1iByDUnejFS8cGa288SqOArtDYqEEAiamaOkOZioIx8"
Expand Down
17 changes: 0 additions & 17 deletions src/components/Helmet/Helmet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export const HelmetTag = memo(
console.log(schemaData);

const orig = location.origin;
const url = location.href;
const defaultDescription =
"못 가게된 숙박권 더 이상 돈 날리지 말고, 비싼 호캉스도 믿고 거래하자! 특가보다 저렴한 호캉스 예약.";
const fullTitle = `퍼센트호텔${title ? ` | ${title}` : ""}`;
Expand Down Expand Up @@ -47,22 +46,6 @@ export const HelmetTag = memo(
<Helmet>
<title>{fullTitle}</title>
<meta name="description" content={defaultDescription} />

<meta property="og:url" content={url} />
<meta property="og:type" content="website" />
<meta property="og:title" content={fullTitle} />
<meta property="og:site_name" content="퍼센트 호텔" />
<meta property="og:image" content={`${orig}/og-img.png`} />
<meta property="og:description" content={defaultDescription} />

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content={fullTitle} />
<meta name="twitter:description" content={defaultDescription} />
<meta
name="twitter:image"
content={`${orig}/assets/logos/main_logo.svg`}
/>

<script type="application/ld+json">{JSON.stringify(fullSchema)}</script>
</Helmet>
);
Expand Down

0 comments on commit c5a6f1e

Please sign in to comment.