-
Notifications
You must be signed in to change notification settings - Fork 0
added seo things #11
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
added seo things #11
Changes from all commits
54c5ebd
34a4266
3b2255a
5345e52
803a190
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,35 @@ | ||||||||||||||||||||||||||
| import constantSEO from "@/lib/constantSEO"; | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| export const metadata = { | ||||||||||||||||||||||||||
| title: "Sitemap", | ||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| export default function sitemap() { | ||||||||||||||||||||||||||
|
Comment on lines
+2
to
+7
|
||||||||||||||||||||||||||
| export const metadata = { | |
| title: "Sitemap", | |
| }; | |
| export default function sitemap() { | |
| import type { MetadataRoute } from "next"; | |
| export const metadata = { | |
| title: "Sitemap", | |
| }; | |
| export default function sitemap(): MetadataRoute.Sitemap { |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| const constantSEO = { | ||
| baseUrl: "https://svg-from-img.vercel.app", | ||
| applicationName: "SVG from Img", | ||
|
|
||
| title: "SVG from Img - Convert Images to SVG Format", | ||
| description: | ||
| "Easily convert your images to SVG format with our online tool. Upload your image and get a scalable vector graphic in seconds.", | ||
|
|
||
| keywords: [ | ||
| "svg from img", | ||
| "convert image to svg", | ||
| "svg converter", | ||
| "image to svg", | ||
| "png to svg", | ||
| "jpg to svg", | ||
| "jpeg to svg", | ||
| "online image to svg converter", | ||
| "free svg converter", | ||
| "vectorize image online", | ||
| "raster to vector converter", | ||
| "photo to svg", | ||
| "image tracer online", | ||
| "generate svg from image", | ||
| "convert png to vector", | ||
| "ai to svg converter", | ||
| "svg maker", | ||
| "image to vector converter", | ||
| "online svg generator", | ||
| "best svg converter tool", | ||
| ], | ||
| }; | ||
|
|
||
| export default constantSEO; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| import constantSEO from "./constantSEO"; | ||
|
|
||
| export const metadata = { | ||
| metadataBase: new URL(constantSEO.baseUrl), | ||
|
|
||
| // General info | ||
| applicationName: constantSEO.applicationName, | ||
| generator: "Next.js", | ||
| category: "Technology", | ||
|
|
||
| authors: [ | ||
| { | ||
| name: "Shitanshu Kumar", | ||
| url: "https://www.linkedin.com/in/shitanshukumar607", | ||
| }, | ||
| ], | ||
| publisher: "Shitanshu Kumar", | ||
|
|
||
| // Title & Description | ||
| title: { | ||
| default: constantSEO.title, | ||
| template: "%s | SVG from Img", | ||
| }, | ||
| description: constantSEO.description, | ||
| keywords: constantSEO.keywords, | ||
| alternates: { | ||
| canonical: constantSEO.baseUrl, | ||
| }, | ||
|
|
||
| // Icons & PWA | ||
| // manifest: "/site.webmanifest", | ||
| // icons: { | ||
| // icon: [ | ||
| // { url: "/favicon.ico", sizes: "any" }, | ||
| // { url: "/favicon-32x32.png", type: "image/png", sizes: "32x32" }, | ||
| // { url: "/favicon-16x16.png", type: "image/png", sizes: "16x16" }, | ||
| // ], | ||
| // apple: "/apple-touch-icon.png", | ||
| // }, | ||
|
|
||
| // Open Graph (Facebook, LinkedIn, etc.) | ||
| openGraph: { | ||
| title: constantSEO.title, | ||
| description: constantSEO.description, | ||
| url: constantSEO.baseUrl, | ||
| siteName: constantSEO.applicationName, | ||
| locale: "en_US", | ||
| type: "website", | ||
| // images: [ | ||
| // { | ||
| // url: SiteAssets.SEO_Home, | ||
| // width: 1200, | ||
| // height: 630, | ||
| // alt: constantSEO.applicationName, | ||
| // } | ||
| // ], | ||
| }, | ||
|
|
||
| // Twitter Card | ||
| twitter: { | ||
| card: "summary_large_image", | ||
| title: constantSEO.title, | ||
| description: constantSEO.description, | ||
| // images: [ | ||
| // { | ||
| // url: SiteAssets.SEO_Home, | ||
| // width: 1200, | ||
| // height: 630, | ||
| // alt: constantSEO.applicationName, | ||
| // } | ||
| // ], | ||
| }, | ||
|
|
||
| // Robots & Crawling | ||
| robots: { | ||
| index: true, | ||
| follow: true, | ||
| googleBot: { | ||
| index: true, | ||
| follow: true, | ||
| "max-video-preview": -1, | ||
| "max-image-preview": "large", | ||
| "max-snippet": -1, | ||
| }, | ||
| }, | ||
|
Comment on lines
+75
to
+85
|
||
| }; | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,34 @@ | ||||||||||||||||||||||||||||||||||||||||||
| # ==================================== | ||||||||||||||||||||||||||||||||||||||||||
| # 🤖 General Settings | ||||||||||||||||||||||||||||||||||||||||||
| # ==================================== | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| User-agent: * | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| # Block common sensitive paths | ||||||||||||||||||||||||||||||||||||||||||
| Disallow: /admin | ||||||||||||||||||||||||||||||||||||||||||
| Disallow: /api | ||||||||||||||||||||||||||||||||||||||||||
| Disallow: /private | ||||||||||||||||||||||||||||||||||||||||||
| Disallow: /.netlify | ||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+7
to
+11
|
||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| # Recommended Crawl Delay (some bots may ignore) | ||||||||||||||||||||||||||||||||||||||||||
| Crawl-delay: 10 | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| # ==================================== | ||||||||||||||||||||||||||||||||||||||||||
| # 🔍 Search Engine Specific Rules | ||||||||||||||||||||||||||||||||||||||||||
| # ==================================== | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| # Googlebot | ||||||||||||||||||||||||||||||||||||||||||
| User-agent: Googlebot | ||||||||||||||||||||||||||||||||||||||||||
| Allow: /generate | ||||||||||||||||||||||||||||||||||||||||||
| Allow: /collections | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| # Bingbot | ||||||||||||||||||||||||||||||||||||||||||
| User-agent: Bingbot | ||||||||||||||||||||||||||||||||||||||||||
| Allow: /generate | ||||||||||||||||||||||||||||||||||||||||||
| Allow: /collections | ||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+23
to
+28
|
||||||||||||||||||||||||||||||||||||||||||
| Allow: /collections | |
| # Bingbot | |
| User-agent: Bingbot | |
| Allow: /generate | |
| Allow: /collections | |
| Allow: /collections | |
| Disallow: /admin | |
| Disallow: /api | |
| Disallow: /private | |
| Disallow: /.netlify | |
| # Bingbot | |
| User-agent: Bingbot | |
| Allow: /generate | |
| Allow: /collections | |
| Disallow: /admin | |
| Disallow: /api | |
| Disallow: /private | |
| Disallow: /.netlify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] app/sitemap.ts is a metadata route (not a page) and Next.js ignores page metadata here. Removing this export avoids confusion and dead code.