Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 64f2bd5

Browse files
committed
Update metatags
1 parent db8d7d1 commit 64f2bd5

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

src/components/seo/Meta.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Head from 'next/head'
22
import { useRouter } from 'next/router'
33

44
export default function Meta() {
5-
const baseUrl = 'https://beta.coderplex.org'
5+
const baseUrl = 'https://coderplex.org'
66
const router = useRouter()
77
return (
88
<Head>

src/components/seo/Title.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import Head from 'next/head'
22

33
export default function Title({
4-
suffix = 'Coderplex',
4+
suffix = 'Coderplex Community',
55
children,
66
}: {
77
suffix?: string
88
children: string
99
}) {
10-
let title = children ? `${children} - ` + suffix : suffix
10+
let title = children ? `${children} | ` + suffix : suffix
1111

1212
return (
1313
<Head>

src/pages/_app.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function MyApp({ Component, pageProps }: AppProps) {
4242
const description =
4343
meta.metaDescription ||
4444
meta.description ||
45-
"We're a non-profit startup on a mission to improve the state of tech across India"
45+
'Achieve your goals with a community of passionate self-learners by joining the Coderplex Community'
4646

4747
return (
4848
<ThemeProvider
@@ -52,7 +52,7 @@ function MyApp({ Component, pageProps }: AppProps) {
5252
>
5353
<QueryClientProvider client={queryClient}>
5454
<Provider session={pageProps.session}>
55-
<Title suffix="Coderplex">{meta.metaTitle || meta.title}</Title>
55+
<Title>{meta.metaTitle || meta.title}</Title>
5656
<Description>{description}</Description>
5757
<Meta />
5858
<Layout {...layoutProps}>

src/pages/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GoalType, HomePageFeed } from '@/components'
1+
import { GoalType, HomePageFeed, Title } from '@/components'
22
import { useSession } from 'next-auth/client'
33
import { useQuery } from 'react-query'
44
import { User } from './members'
@@ -55,6 +55,7 @@ export default function Home() {
5555

5656
return (
5757
<>
58+
<Title>Learn. Code. Collaborate.</Title>
5859
<HomePageFeed
5960
updates={isLoading ? [] : data.updates}
6061
showGoal={Boolean(

0 commit comments

Comments
 (0)