Skip to content

Commit 31a2f3b

Browse files
✅ [seo]
1 parent ee6d6fc commit 31a2f3b

File tree

5 files changed

+113
-38
lines changed

5 files changed

+113
-38
lines changed

README.md

+2-35
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,3 @@
1-
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
1+
# NextJs Template
22

3-
## Getting Started
4-
5-
First, run the development server:
6-
7-
```bash
8-
npm run dev
9-
# or
10-
yarn dev
11-
# or
12-
pnpm dev
13-
# or
14-
bun dev
15-
```
16-
17-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18-
19-
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
20-
21-
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
22-
23-
## Learn More
24-
25-
To learn more about Next.js, take a look at the following resources:
26-
27-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29-
30-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
31-
32-
## Deploy on Vercel
33-
34-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35-
36-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
3+
## Make sure you go through every file and edit it to fit what works for you, replace all the contents with actual values.

app/layout.tsx

+56-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import "./global.css";
12
import type { Metadata } from "next";
23
import localFont from "next/font/local";
3-
import "./globals.css";
44

55
const geistSans = localFont({
66
src: "./fonts/GeistVF.woff",
@@ -14,8 +14,61 @@ const geistMono = localFont({
1414
});
1515

1616
export const metadata: Metadata = {
17-
title: "Next app Template",
18-
description: "Generated by create next app",
17+
metadataBase: new URL("https://nextapp template.xyz"),
18+
icons: {
19+
icon: "/icon.png",
20+
},
21+
title: "nextjs template",
22+
description:
23+
"I fell in love with next.js, im trying to make a template for it also",
24+
applicationName: "next Web Application",
25+
authors: [{ name: "nextapp template", url: "https://domainname.host" }],
26+
keywords: ["NextJs", "reactjs", "template", "typescript"],
27+
creator: "VickyJay",
28+
publisher: "VickyJay",
29+
generator: "Next.js",
30+
referrer: "origin",
31+
robots: {
32+
index: true,
33+
follow: true,
34+
},
35+
openGraph: {
36+
type: "website",
37+
url: "https://domainname.host",
38+
title: "Nextjs template",
39+
siteName: "nextapp template",
40+
locale: "en_US",
41+
images: [
42+
{
43+
url: "linktoopengraphimage.cdn",
44+
width: 1200,
45+
height: 630,
46+
alt: "next OG Image",
47+
},
48+
],
49+
},
50+
twitter: {
51+
site: "nextapp",
52+
creator: "socialmediahandle",
53+
title:
54+
"nextapp template - I fell in love with next.js, im trying to make a template for it tooo",
55+
description:
56+
"I fell in love with next.js, im trying to make a template for it too",
57+
card: "summary_large_image",
58+
images: ["linktoopengraph.com"],
59+
},
60+
appleWebApp: {
61+
capable: true,
62+
title: "nextapp template",
63+
statusBarStyle: "black-translucent",
64+
},
65+
formatDetection: {
66+
telephone: false,
67+
},
68+
abstract:
69+
"I fell in love with next.js, im trying to make a template for it tooo",
70+
category: "Social",
71+
classification: "Social",
1972
};
2073

2174
export default function RootLayout({

app/robots.ts

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
import type { MetadataRoute } from "next";
3+
4+
export default function robots(): MetadataRoute.Robots {
5+
return {
6+
rules: [
7+
{
8+
userAgent: "*",
9+
allow: ["/"],
10+
disallow: [],
11+
},
12+
{
13+
userAgent: "Googlebot",
14+
allow: ["/"],
15+
disallow: "/private/",
16+
},
17+
{
18+
userAgent: ["Applebot", "Bingbot"],
19+
disallow: ["/"],
20+
},
21+
],
22+
sitemap: "https://sitename.host/sitemap.xml",
23+
};
24+
}

app/site.webmanifest

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "next template",
3+
"short_name": "template",
4+
"icons": [
5+
{
6+
"src": "/android-chrome-192x192.png",
7+
"sizes": "192x192",
8+
"type": "image/png"
9+
},
10+
{
11+
"src": "/android-chrome-512x512.png",
12+
"sizes": "512x512",
13+
"type": "image/png"
14+
}
15+
],
16+
"theme_color": "#ffffff",
17+
"background_color": "#ffffff",
18+
"display": "standalone"
19+
}

app/sitemap.ts

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import type { MetadataRoute } from "next";
2+
3+
export default function sitemap(): MetadataRoute.Sitemap {
4+
return [
5+
{
6+
url: "https://hostname.domain",
7+
lastModified: new Date(),
8+
changeFrequency: "daily",
9+
priority: 1,
10+
},
11+
];
12+
}

0 commit comments

Comments
 (0)