From 0e6e7195f897d3ee15ca9a67ad6fadf9e5de30ee Mon Sep 17 00:00:00 2001 From: Guillaume Dorce Date: Sun, 19 Feb 2023 18:45:45 +0100 Subject: [PATCH] add head meta and title to layout --- src/pages/index.tsx | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index ce80bad..0bb9623 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,5 +1,6 @@ import Image from "next/image"; import Link from "next/link"; +import Head from "next/head"; import { FaGithub } from "react-icons/fa"; function Header() { @@ -76,9 +77,32 @@ function Footer() { ); } -function Layout({ children }: { children: React.ReactNode }) { +function Layout({ children, title }: { children: React.ReactNode, title?: string }) { return (
+ + {title} | Photo Club Haute Lozère + + + + + + + + + + + + + + + + + + + + +
{children}