Skip to content

Commit

Permalink
chore: meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
xtools-at committed Oct 25, 2023
1 parent 02917d2 commit a9fab8d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export default function App(props: MyAppProps) {
[prefersDarkMode]
);

const baseUrl = `${host}${basePath || ""}`;

return (
<CacheProvider value={emotionCache}>
<Head>
Expand All @@ -55,11 +57,8 @@ export default function App(props: MyAppProps) {
/>
<meta property="og:site_name" content={name} />
<meta property="og:title" content={title} />
<meta property="og:url" content={`${host}${basePath}`} />
<meta
property="og:image"
content={`${host}${basePath}/icons/512-maskable.png`}
/>
<meta property="og:url" content={baseUrl} />
<meta property="og:image" content={`${baseUrl}/icons/banner.png`} />
<meta property="og:description" content={description} />
<meta property="og:type" content="website" />
<meta property="og:locale" content="en" />
Expand All @@ -68,7 +67,7 @@ export default function App(props: MyAppProps) {
<meta name="twitter:description" content={description} />
<meta
name="twitter:image:src"
content={`${host}${basePath}/icons/512-maskable.png`}
content={`${baseUrl}/icons/512-maskable.png`}
/>
<meta name="twitter:creator" content={creatorTwitter} />
</Head>
Expand Down

0 comments on commit a9fab8d

Please sign in to comment.