This commit is contained in:
parent
b1cbd7a3fa
commit
153596fe75
@ -1,5 +1,6 @@
|
||||
import PlayerPage from "@/components/player/PlayerPage";
|
||||
import { ssrSettings } from "@/ssrSettings";
|
||||
import { formatNumber } from "@/utils/number";
|
||||
import { ScoreSaberAPI } from "@/utils/scoresaber/api";
|
||||
import { Metadata } from "next";
|
||||
|
||||
@ -19,15 +20,17 @@ export async function generateMetadata({
|
||||
|
||||
const description =
|
||||
`View ${player.name}'s scores, top plays, and more.
` +
|
||||
`Rank: #${player.rank} (#${player.countryRank} - ${player.country})
` +
|
||||
`Rank: #${player.rank} (#${formatNumber(
|
||||
player.countryRank,
|
||||
)} - ${formatNumber(player.country)})
` +
|
||||
`PP: ${player.pp}
` +
|
||||
`Play Count: ${player.scoreStats.totalPlayCount}`;
|
||||
`Play Count: ${formatNumber(player.scoreStats.totalPlayCount)}`;
|
||||
|
||||
return {
|
||||
title: `${player.name}`,
|
||||
description: description,
|
||||
description: `View ${player.name}'s scores, top plays, and more.`,
|
||||
openGraph: {
|
||||
type: "website",
|
||||
type: "article",
|
||||
title: `${ssrSettings.siteName} - ${player.name}`,
|
||||
description: description,
|
||||
images: [
|
||||
|
Loading…
Reference in New Issue
Block a user