@@ -3,6 +3,7 @@ import localFont from "next/font/local";
33import "@flagix/ui/styles/globals.css" ;
44import "./globals.css" ;
55import { Raleway } from "next/font/google" ;
6+ import { SITE_CONFIG } from "@/utils/site" ;
67import Providers from "./providers" ;
78
89const geistSans = localFont ( {
@@ -22,8 +23,41 @@ const raleway = Raleway({
2223} ) ;
2324
2425export const metadata : Metadata = {
25- title : "Flagix" ,
26- description : "Flagix" ,
26+ title : {
27+ default : SITE_CONFIG . title ,
28+ template : `%s | ${ SITE_CONFIG . title } ` ,
29+ } ,
30+ description : SITE_CONFIG . description ,
31+ metadataBase : new URL ( SITE_CONFIG . url ) ,
32+ alternates : {
33+ canonical : "/" ,
34+ } ,
35+ openGraph : {
36+ type : "website" ,
37+ locale : "en_US" ,
38+ url : SITE_CONFIG . url ,
39+ title : SITE_CONFIG . title ,
40+ description : SITE_CONFIG . description ,
41+ siteName : SITE_CONFIG . title ,
42+ images : [
43+ {
44+ url : "/og.jpg" ,
45+ width : 1200 ,
46+ height : 630 ,
47+ alt : SITE_CONFIG . title ,
48+ } ,
49+ ] ,
50+ } ,
51+ twitter : {
52+ card : "summary_large_image" ,
53+ title : SITE_CONFIG . title ,
54+ description : SITE_CONFIG . description ,
55+ images : [ "/og.jpg" ] ,
56+ } ,
57+ icons : {
58+ icon : "/favicon.ico" ,
59+ shortcut : "/favicon.ico" ,
60+ } ,
2761} ;
2862
2963export default function RootLayout ( {
@@ -34,7 +68,7 @@ export default function RootLayout({
3468 return (
3569 < html className = "h-full" lang = "en" >
3670 < body
37- className = { `${ geistSans . variable } ${ geistMono . variable } ${ raleway . variable } h-full font-sans` }
71+ className = { `${ geistSans . variable } ${ geistMono . variable } ${ raleway . variable } h-full font-sans antialiased ` }
3872 >
3973 < Providers > { children } </ Providers >
4074 </ body >
0 commit comments