Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 8 commits into from
Nov 2, 2022
9 changes: 9 additions & 0 deletions packages/create-next-app/templates/app/js/app/head.jsx
@@ -0,0 +1,9 @@
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" />
</>
)
}
10 changes: 5 additions & 5 deletions packages/create-next-app/templates/app/js/app/layout.jsx
Expand Up @@ -3,11 +3,11 @@ import './globals.css'
export default function RootLayout({ children }) {
return (
<html lang="en">
<head>
<title>Create Next App</title>
<meta name="description" content="Generated by create next app" />
<link rel="icon" href="/favicon.ico" />
</head>
{/*
<head /> will contain the components returned by the nearest parent
head.jsx. Find out more at https://beta.nextjs.org/docs/api-reference/file-conventions/head
*/}
<head />
<body>{children}</body>
</html>
)
Expand Down
9 changes: 9 additions & 0 deletions packages/create-next-app/templates/app/ts/app/head.tsx
@@ -0,0 +1,9 @@
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" />
</>
)
}
10 changes: 5 additions & 5 deletions packages/create-next-app/templates/app/ts/app/layout.tsx
Expand Up @@ -7,11 +7,11 @@ export default function RootLayout({
}) {
return (
<html lang="en">
<head>
<title>Create Next App</title>
<meta name="description" content="Generated by create next app" />
<link rel="icon" href="/favicon.ico" />
</head>
{/*
<head /> will contain the components returned by the nearest parent
head.tsx. Find out more at https://beta.nextjs.org/docs/api-reference/file-conventions/head
*/}
<head />
<body>{children}</body>
</html>
)
Expand Down