🔍️ Update metadata titles

This commit is contained in:
Luke Vella 2025-01-27 19:55:15 +00:00
parent af6f7b6140
commit c7337d6b95
No known key found for this signature in database
GPG key ID: 469CAD687F0D784C
3 changed files with 15 additions and 9 deletions

View file

@ -1,6 +1,5 @@
import { cn } from "@rallly/ui";
import { DotPattern } from "@rallly/ui/dot-pattern";
import type { Metadata } from "next";
import { Logo } from "@/components/logo";
import {
@ -48,10 +47,3 @@ export default async function Layout({
</div>
);
}
export const metadata: Metadata = {
title: {
template: "%s - Rallly",
default: "Rallly",
},
};

View file

@ -2,7 +2,7 @@ import "tailwindcss/tailwind.css";
import "../../style.css";
import { Toaster } from "@rallly/ui/toaster";
import type { Viewport } from "next";
import type { Metadata, Viewport } from "next";
import { Inter } from "next/font/google";
import React from "react";
@ -46,3 +46,10 @@ export default async function Root({
</html>
);
}
export const metadata: Metadata = {
title: {
template: "%s | Rallly",
default: "Rallly",
},
};

View file

@ -40,3 +40,10 @@ export default async function QuickCreatePage() {
</div>
);
}
export async function generateMetadata() {
const { t } = await getTranslation();
return {
title: t("quickCreate"),
};
}