add meta description for world page

This commit is contained in:
41666 2023-05-22 15:06:21 -04:00
parent ae45b29e93
commit d31c88115a
7 changed files with 36 additions and 13 deletions

View file

@ -10,7 +10,12 @@ export const loader = async ({ params }: LoaderArgs) => {
};
export const meta: V2_MetaFunction<typeof loader> = ({ data }) => {
return [{ title: `${data?.world.name || "Unknown world"} | PS2.LIVE` }];
return [
{ title: `${data?.world.name || "Unknown world"} | PS2.LIVE` },
{
description: `${data?.world.name} currently has ${data?.world.population.total} players online right now. VS: ${data?.world.population.vs}, NC: ${data?.world.population.nc}, TR: ${data?.world.population.tr} -- See more detailed stats on ps2.live.`,
},
];
};
export default function World() {