Skip to content

Commit

Permalink
Next-seo updates and fixes for missing title/description tags
Browse files Browse the repository at this point in the history
  • Loading branch information
montoulieu committed Aug 2, 2021
1 parent 4c03b51 commit 1826aec
Show file tree
Hide file tree
Showing 21 changed files with 125 additions and 38 deletions.
2 changes: 2 additions & 0 deletions next-seo.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const SEO = {
titleTemplate: '%s | Flexpool.io',
description:
'The mining pool that offers you the best mining experience. We build the future of mining pools here.',
openGraph: {
type: 'website',
locale: 'en_US',
Expand Down
2 changes: 1 addition & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const store = createReduxStore({
const App = ({ Component, pageProps, router }: AppProps) => {
return (
<>
<DefaultSeo {...SEO} />
<ReduxProvider store={store}>
<Script
src="https://www.googletagmanager.com/gtag/js?id=G-PWS9985F4X"
Expand Down Expand Up @@ -72,7 +73,6 @@ const App = ({ Component, pageProps, router }: AppProps) => {
<PoolCoins />
<NavBar />
<AppTheme />
<DefaultSeo {...SEO} />
<SwitchTransition>
<CSSTransition
classNames="fade"
Expand Down
7 changes: 6 additions & 1 deletion pages/blocks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ function BlocksPage() {

return (
<Page>
<NextSeo title={t('head_title')} />
<NextSeo
title={t('head_title')}
openGraph={{
title: t('head_title'),
}}
/>
<HeaderStat>
<h1>{t('title')}</h1>
<p>{t('description')}</p>
Expand Down
7 changes: 6 additions & 1 deletion pages/brand-assets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ export const BrandAssetsPage = () => {
const { t } = useTranslation('brand-assets');
return (
<Page>
<NextSeo title={t('head_title')} />
<NextSeo
title={t('head_title')}
openGraph={{
title: t('head_title'),
}}
/>

<Content md paddingLg>
<h2>{t('brand_name.title')}</h2>
Expand Down
7 changes: 6 additions & 1 deletion pages/business-development.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ export const BusinessDevelopmentPage = () => {
const { t } = useTranslation('business-dev');
return (
<Page>
<NextSeo title={t('head_title')} />
<NextSeo
title={t('head_title')}
openGraph={{
title: t('head_title'),
}}
/>

<Content md paddingLg>
<h1>{t('title')}</h1>
Expand Down
7 changes: 6 additions & 1 deletion pages/contact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ export const ContactPage = () => {

return (
<Page>
<NextSeo title={t('head_title')} />
<NextSeo
title={t('head_title')}
openGraph={{
title: t('head_title'),
}}
/>

<Content md paddingLg>
<h1>{t('title')}</h1>
Expand Down
7 changes: 7 additions & 0 deletions pages/docs/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@ import { Page } from 'src/components/layout/Page';
import { Spacer } from 'src/components/layout/Spacer';
import SwaggerUI from 'swagger-ui-react';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { NextSeo } from 'next-seo';

export const ApiDocsPage = () => {
return (
<Page>
<Content padding>
<NextSeo
title={'API Documentation'}
openGraph={{
title: 'API Documentation',
}}
/>
<Spacer size="xl" />
<SwaggerUI url="https://static.flexpool.io/api/openapi.json" />
<Spacer size="xl" />
Expand Down
7 changes: 6 additions & 1 deletion pages/faq.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,12 @@ function FAQPage({ faq }) {

return (
<Page>
<NextSeo title={'FAQ'} />
<NextSeo
title={'FAQ'}
openGraph={{
title: 'FAQ'
}}
/>
<Content paddingLg>
<FaqContent>
{(faq || []).map((item) => (
Expand Down
11 changes: 7 additions & 4 deletions pages/get-started/[ticker]/GPU.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Head from 'next/head';
import { NextSeo } from 'next-seo';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';

import { Content } from '../../../src/components/layout/Content';
Expand All @@ -8,9 +8,12 @@ import { MineableCoinGuidePage } from '../../../src/pages/GetStarted/GPU/CoinGui
export const GetStartedNicehashPage = () => {
return (
<Page>
<Head>
<title>Start mining with Flexpool</title>
</Head>
<NextSeo
title={'Start mining with Flexpool'}
openGraph={{
title: 'Start mining with Flexpool',
}}
/>
<Content paddingLg>
<MineableCoinGuidePage />
</Content>
Expand Down
11 changes: 7 additions & 4 deletions pages/get-started/[ticker]/XCH-CLI.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Head from 'next/head';
import { NextSeo } from 'next-seo';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';

import { Content } from '../../../src/components/layout/Content';
Expand All @@ -8,9 +8,12 @@ import { ChiaCliGuidePage } from '../../../src/pages/GetStarted/ChiaCli/Guide.pa
export const GetStartedXchCliPage = () => {
return (
<Page>
<Head>
<title>Start mining with Flexpool</title>
</Head>
<NextSeo
title={'Start mining with Flexpool'}
openGraph={{
title: 'Start mining with Flexpool',
}}
/>
<Content paddingLg>
<ChiaCliGuidePage />
</Content>
Expand Down
11 changes: 7 additions & 4 deletions pages/get-started/[ticker]/XCH-GUI.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Head from 'next/head';
import { NextSeo } from 'next-seo';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';

import { Content } from '../../../src/components/layout/Content';
Expand All @@ -8,9 +8,12 @@ import { ChiaGuiGuidePage } from '../../../src/pages/GetStarted/ChiaGui/Guide.pa
export const GetStartedXchGuiPage = () => {
return (
<Page>
<Head>
<title>Start mining with Flexpool</title>
</Head>
<NextSeo
title={'Start mining with Flexpool'}
openGraph={{
title: 'Start mining with Flexpool',
}}
/>
<Content paddingLg>
<ChiaGuiGuidePage />
</Content>
Expand Down
11 changes: 7 additions & 4 deletions pages/get-started/[ticker]/nicehash.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Head from 'next/head';
import { NextSeo } from 'next-seo';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';

import { Content } from '../../../src/components/layout/Content';
Expand All @@ -8,9 +8,12 @@ import { NicehashGuidePage } from '../../../src/pages/GetStarted/Nicehash/Niceha
export const GetStartedNicehashPage = () => {
return (
<Page>
<Head>
<title>Start mining with Flexpool</title>
</Head>
<NextSeo
title={'Start mining with Flexpool'}
openGraph={{
title: 'Start mining with Flexpool',
}}
/>
<Content paddingLg>
<NicehashGuidePage />
</Content>
Expand Down
11 changes: 7 additions & 4 deletions pages/get-started/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Head from 'next/head';
import { NextSeo } from 'next-seo';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';

import { Content } from '../../src/components/layout/Content';
Expand All @@ -8,9 +8,12 @@ import { MineableCoinList } from '../../src/pages/GetStarted/CoinList.page';
export const GetStartedPage = () => {
return (
<Page>
<Head>
<title>Start mining with Flexpool</title>
</Head>
<NextSeo
title={'Start mining with Flexpool'}
openGraph={{
title: 'Start mining with Flexpool',
}}
/>
<Content paddingLg>
<MineableCoinList />
</Content>
Expand Down
7 changes: 6 additions & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ export const HomePage = () => {

return (
<PageContainer>
<NextSeo title={'The Most Advanced Mining Pool'} />
<NextSeo
title='The Most Advanced Mining Pool'
openGraph={{
title: 'The Most Advanced Mining Pool',
}}
/>

<Hero>
<Content contentCenter style={{ position: 'relative', zIndex: 100 }}>
Expand Down
12 changes: 8 additions & 4 deletions pages/miner/[coin]/[...address].tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useEffect, useState } from 'react';
import Head from 'next/head';

import { NextSeo } from 'next-seo';
import dynamic from 'next/dynamic';
import { useRouter } from 'next/router';
import { useTranslation } from 'next-i18next';
Expand Down Expand Up @@ -182,9 +183,12 @@ export const MinerDashboardPageContent: React.FC<{
onRefresh={loadAll}
>
<Page>
<Head>
<title>{`${address} | Flexpool.io`}</title>
</Head>
<NextSeo
title={`${address}`}
openGraph={{
title: `${address}`,
}}
/>
<Content>
<HeaderGreetings onRefresh={loadAll} />
<AccountHeader
Expand Down
7 changes: 6 additions & 1 deletion pages/miners.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ function MinersPage() {

return (
<Page>
<NextSeo title={t('head_title')} />
<NextSeo
title={t('head_title')}
openGraph={{
title: t('head_title'),
}}
/>

<HeaderStat>
<h1>{t('title')}</h1>
Expand Down
7 changes: 6 additions & 1 deletion pages/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,12 @@ export const NotFoundPage = () => {
return (
<Page>
<Wrapper>
<NextSeo title={'404 Not Found'} />
<NextSeo
title={'404 Not Found'}
openGraph={{
title: '404 Not Found',
}}
/>
<StarsContainer>
<StarsSvg />
</StarsContainer>
Expand Down
7 changes: 6 additions & 1 deletion pages/open-data-reports.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,12 @@ export const OpenDataReportsPage = ({ dates }) => {

return (
<Page>
<NextSeo title={t('head_title')} />
<NextSeo
title={t('head_title')}
openGraph={{
title: t('head_title'),
}}
/>

<Content md paddingLg>
<h1>{t('title')}</h1>
Expand Down
8 changes: 6 additions & 2 deletions pages/partners.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,12 @@ export const PartnersPage = () => {

return (
<Page>
<NextSeo title={'Partners'} />

<NextSeo
title={'Partners'}
openGraph={{
title: 'Partners',
}}
/>
<Content md paddingLg>
<h1>Partners</h1>

Expand Down
7 changes: 6 additions & 1 deletion pages/statistics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ function StatisticsPage() {

return (
<Page>
<NextSeo title={t('head_title')} />
<NextSeo
title={t('head_title')}
openGraph={{
title: t('head_title'),
}}
/>
<HeaderStat>
<h1>{t('title')}</h1>
</HeaderStat>
Expand Down
7 changes: 6 additions & 1 deletion pages/support.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ export const SupportPage = () => {
const { t } = useTranslation('support');
return (
<Page>
<NextSeo title={t('head_title')} />
<NextSeo
title={t('head_title')}
openGraph={{
title: t('head_title'),
}}
/>

<HeroBlue>
<Content md>
Expand Down

0 comments on commit 1826aec

Please sign in to comment.