This commit is contained in:
parent
508d961174
commit
cb9c297351
@ -1,4 +1,5 @@
|
|||||||
import PlayerPage from "@/components/player/PlayerPage";
|
import PlayerPage from "@/components/player/PlayerPage";
|
||||||
|
import { ssrSettings } from "@/ssrSettings";
|
||||||
import { ScoreSaberAPI } from "@/utils/scoresaber/api";
|
import { ScoreSaberAPI } from "@/utils/scoresaber/api";
|
||||||
import { Metadata } from "next";
|
import { Metadata } from "next";
|
||||||
|
|
||||||
@ -16,14 +17,18 @@ export async function generateMetadata({
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
const description =
|
||||||
title: `${player.name}`,
|
|
||||||
description:
|
|
||||||
`View ${player.name}'s scores, top plays, and more.
` +
|
`View ${player.name}'s scores, top plays, and more.
` +
|
||||||
`Rank: #${player.rank} (#${player.countryRank} - ${player.country})
` +
|
`Rank: #${player.rank} (#${player.countryRank} - ${player.country})
` +
|
||||||
`PP: ${player.pp}
` +
|
`PP: ${player.pp}
` +
|
||||||
`Play Count: ${player.scoreStats.totalPlayCount}`,
|
`Play Count: ${player.scoreStats.totalPlayCount}`;
|
||||||
twitter: {
|
|
||||||
|
return {
|
||||||
|
title: `${player.name}`,
|
||||||
|
description: description,
|
||||||
|
openGraph: {
|
||||||
|
title: `${ssrSettings.siteName} - ${player.name}`,
|
||||||
|
description: description,
|
||||||
images: [
|
images: [
|
||||||
{
|
{
|
||||||
url: player.profilePicture,
|
url: player.profilePicture,
|
||||||
|
Loading…
Reference in New Issue
Block a user