Unverified Commit 8715fe03 authored by Wyatt Johnson's avatar Wyatt Johnson Committed by GitHub

create-next-app: add head to template (#42357)

<!--
Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible we request that
you follow the checklist sections below.
Choose the right checklist for the change that you're making:
-->

Added the `head.{j,t}sx` files to the `create-next-app` templates.
parent 2a9e2f18
export default function Head() {
return (
<>
<title>Create Next App</title>
<meta name="description" content="Generated by create next app" />
<link rel="icon" href="/favicon.ico" />
</>
)
}
...@@ -3,11 +3,11 @@ import './globals.css' ...@@ -3,11 +3,11 @@ import './globals.css'
export default function RootLayout({ children }) { export default function RootLayout({ children }) {
return ( return (
<html lang="en"> <html lang="en">
<head> {/*
<title>Create Next App</title> <head /> will contain the components returned by the nearest parent
<meta name="description" content="Generated by create next app" /> head.jsx. Find out more at https://beta.nextjs.org/docs/api-reference/file-conventions/head
<link rel="icon" href="/favicon.ico" /> */}
</head> <head />
<body>{children}</body> <body>{children}</body>
</html> </html>
) )
......
export default function Head() {
return (
<>
<title>Create Next App</title>
<meta name="description" content="Generated by create next app" />
<link rel="icon" href="/favicon.ico" />
</>
)
}
...@@ -7,11 +7,11 @@ export default function RootLayout({ ...@@ -7,11 +7,11 @@ export default function RootLayout({
}) { }) {
return ( return (
<html lang="en"> <html lang="en">
<head> {/*
<title>Create Next App</title> <head /> will contain the components returned by the nearest parent
<meta name="description" content="Generated by create next app" /> head.tsx. Find out more at https://beta.nextjs.org/docs/api-reference/file-conventions/head
<link rel="icon" href="/favicon.ico" /> */}
</head> <head />
<body>{children}</body> <body>{children}</body>
</html> </html>
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment