Skip to content

Commit bccd526

Browse files
committed
fix: seo meta
1 parent 42f7ec3 commit bccd526

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
lines changed

pages/_app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function App({ Component, pageProps }: AppProps) {
1818
<CssBaseline />
1919
<BusProvider>
2020
<div className="app-container">
21-
{!embed && <Header title="Linx" user={user} />}
21+
{!embed && <Header title="Link Flow" user={user} />}
2222
<Container disableGutters maxWidth="xl">
2323
<Component {...pageProps} />
2424
</Container>

pages/_document.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ export default function Document() {
55
return (
66
<Html lang="en">
77
<Head>
8-
<meta name="description" content="Linx Flow" />
8+
<meta name="description" content="Link Flow - Routing your users to their preferred platform. A Firebase Dynamic Link alternative." />
99
<meta name="viewport" content="width=device-width, initial-scale=1" />
1010
<link rel="icon" href="/favicon.ico" />
11+
<meta name="theme-color" content="#202124" />
1112
<GA />
1213
</Head>
1314
<body>

pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default function Home({
122122
return (
123123
<>
124124
<Head>
125-
<title>Linx Flow</title>
125+
<title>Link Flow</title>
126126
</Head>
127127
<main>
128128
<>

pages/link/[userId]/[id].tsx

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,25 @@ const LinkPage = ({ data }: LinkProps): JSX.Element => {
1919
return <Error statusCode={404} />
2020
}
2121

22-
22+
const title = data?.seo?.title || "Link Flow Config"
23+
const desc = data?.seo?.description || "Link Flow Config"
24+
const imgSrc = data?.seo?.media || ""
2325
return (
2426
<>
2527
<Head>
26-
<title>{data?.seo?.title || "Link Config"}</title>
27-
<meta name="description" content={data?.seo?.description || "Link Config"} />
28+
<title>{title}</title>
29+
<meta property="og:site_name" content={title} />
30+
<meta property="og:title" content={title} />
31+
32+
<meta name="description" content={desc} />
33+
<meta property="og:description" content={desc} />
34+
35+
<meta property="og:image" content={imgSrc} />
36+
37+
<meta name="twitter:title" content={title} />
38+
<meta name="twitter:description" content={desc} />
39+
<meta name="twitter:card" content="summary_large_image" />
40+
<meta name="twitter:image" content={imgSrc} />
2841
</Head>
2942
<p>{data?.seo?.title || "Link Config"}</p>
3043
<PlatformRedirect destinations={data?.destinations || []} />

0 commit comments

Comments
 (0)