mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-28 17:56:37 +02:00
🔍️ Update metadata titles
This commit is contained in:
parent
af6f7b6140
commit
c7337d6b95
3 changed files with 15 additions and 9 deletions
|
@ -1,6 +1,5 @@
|
||||||
import { cn } from "@rallly/ui";
|
import { cn } from "@rallly/ui";
|
||||||
import { DotPattern } from "@rallly/ui/dot-pattern";
|
import { DotPattern } from "@rallly/ui/dot-pattern";
|
||||||
import type { Metadata } from "next";
|
|
||||||
|
|
||||||
import { Logo } from "@/components/logo";
|
import { Logo } from "@/components/logo";
|
||||||
import {
|
import {
|
||||||
|
@ -48,10 +47,3 @@ export default async function Layout({
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
|
||||||
title: {
|
|
||||||
template: "%s - Rallly",
|
|
||||||
default: "Rallly",
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import "tailwindcss/tailwind.css";
|
||||||
import "../../style.css";
|
import "../../style.css";
|
||||||
|
|
||||||
import { Toaster } from "@rallly/ui/toaster";
|
import { Toaster } from "@rallly/ui/toaster";
|
||||||
import type { Viewport } from "next";
|
import type { Metadata, Viewport } from "next";
|
||||||
import { Inter } from "next/font/google";
|
import { Inter } from "next/font/google";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
|
@ -46,3 +46,10 @@ export default async function Root({
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: {
|
||||||
|
template: "%s | Rallly",
|
||||||
|
default: "Rallly",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
|
@ -40,3 +40,10 @@ export default async function QuickCreatePage() {
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export async function generateMetadata() {
|
||||||
|
const { t } = await getTranslation();
|
||||||
|
return {
|
||||||
|
title: t("quickCreate"),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue