use new metadata api

This commit is contained in:
Nathaniel Tampus
2023-02-25 21:16:14 +08:00
parent ebc8c66064
commit a61b0128e6
2 changed files with 6 additions and 11 deletions

View File

@@ -1,9 +0,0 @@
export default function Head() {
return (
<>
<title>chessu</title>
<meta content="width=device-width, initial-scale=1" name="viewport" />
<link rel="icon" href="/favicon.ico" />
</>
);
}

View File

@@ -3,10 +3,14 @@ import "./globals.css";
import Navbar from "@/components/Navbar";
import Footer from "@/components/Footer";
export const metadata = {
title: "chessu",
description: "Play Chess online."
};
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html>
<head />
<html lang="en">
<body>
<Navbar />