Skip to content

Commit

Permalink
update SEO utils
Browse files Browse the repository at this point in the history
  • Loading branch information
sajadevo committed Feb 8, 2025
1 parent 61bec5a commit 111e5da
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ export function generateMetadata(args?: Metadata): Metadata {
const description =
args?.description ||
"I'm a passionate developer and designer interested in JavaScript, TypeScript, Rust, Product Design, Startups, Web 3.0 and OSS.";
const keywords = args?.keywords || [
"Sajad",
"Developer",
"Designer",
"JavaScript",
"TypeScript",
];

const domain = new URL(
isProd
? process.env.NEXT_PUBLIC_PROD_URL!
Expand All @@ -36,10 +44,10 @@ export function generateMetadata(args?: Metadata): Metadata {
metadataBase: domain,
title,
description,
robots: "follow, index",
keywords,
robots: "follow, index, max-image-preview:large",
publisher: "Sajad Ahmad Nawabi",
authors: [{ name: "Sajad Ahmad Nawabi", url: "https://x.com/sajadevo_" }],
keywords: ["Sajad", "Developer", "Designer", "JavaScript", "TypeScript"],
alternates: { canonical: domain, ...args?.alternates },

// open-graph
Expand All @@ -48,6 +56,8 @@ export function generateMetadata(args?: Metadata): Metadata {
url: domain,
title,
description,
locale: "en_US",
siteName: "Sajad ⋅ Developer & Designer",
images: [
{
url: productDemoImg,
Expand All @@ -64,5 +74,12 @@ export function generateMetadata(args?: Metadata): Metadata {
images: productDemoImg,
...args?.twitter,
},

// other
other: {
"mobile-web-app-capable": "yes",
"apple-mobile-web-app-title": "Sajad",
"apple-mobile-web-app-status-bar-style": "default",
},
};
}
Binary file added public/avatar-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 111e5da

Please sign in to comment.