Skip to content

Commit

Permalink
seo: no index on spammy sub-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
GGonryun committed Aug 15, 2024
1 parent e5e81ea commit 3a27392
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions apps/charity/util/seo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
DeveloperSchema,
ItemSchema,
MonsterSchema,
PrizeSchema,
RaffleSchema,
SerializableGameSchema,
TagSchema,
Expand Down Expand Up @@ -131,6 +130,7 @@ export const bossBattlesSeo = createSeo({

export const bossBattleSeo = (battle: BattleSchema): NextSeoProps =>
createSeo({
noindex: true,
path: routes.battle.path({ params: { battleId: battle.id } }),
title: `${battle.mob.name} | Boss Battle`,
description: `Defeat ${battle.mob.name} and earn rewards. Every token you spend is a donation towards charity. Win prizes by playing browser games.`,
Expand Down Expand Up @@ -418,6 +418,7 @@ export const rafflesSeo = createSeo({

export const raffleSeo = (raffle: RaffleSchema): NextSeoProps =>
createSeo({
noindex: true,
path: routes.raffle.path({ params: { raffleId: raffle.id } }),
title: `${raffle.name} | Raffle`,
description:
Expand Down Expand Up @@ -529,10 +530,3 @@ export const prizesSeo = createSeo({
description:
'Trade your tokens for digital and physical prizes. Win prizes by playing browser games.',
});

export const prizeSeo = (item: PrizeSchema): NextSeoProps =>
createSeo({
path: routes.prizes.prize.path({ params: { prizeId: item.id } }),
title: `${item.name} | Prize`,
description: `Trade your tokens for ${item.name}. Win prizes by playing browser games.`,
});

0 comments on commit 3a27392

Please sign in to comment.