Skip to content

Commit cd2394d

Browse files
committed
minor fixes
Signed-off-by: rishichawda <[email protected]>
1 parent 145a560 commit cd2394d

File tree

9 files changed

+7
-13
lines changed

9 files changed

+7
-13
lines changed

src/components/seo.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
import { Schema } from "astro-seo-schema";
3+
import favicon from "../../content/assets/logo/Group 489.png";
34
45
let {
56
page_info: { title, description, image, keywords },
@@ -15,7 +16,7 @@ const canonicalURL = new URL(
1516
<meta charset="UTF-8" />
1617
<title>{title}</title>
1718
<meta name="viewport" content="width=device-width" />
18-
<link rel="icon" type="image/svg+xml" href={image} />
19+
<link rel="icon" type="image/png" href={favicon.src} />
1920
<meta name="description" content={description} />
2021
<meta name="image" content={image} />
2122
{keywords ? <meta name="keywords" content={keywords} /> : null}

src/pages/404.astro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
---
22
import BaseLayout from "../layouts/base_layout.astro";
33
import "../styles/global.css";
4-
import { Image } from "astro:assets";
54
65
const page_info = {
76
title: "Page Not Found - Rishi Chawda",
87
description: "The page you're looking for doesn't exist or has been moved.",
9-
image: "/favicon.svg",
108
keywords: "404, page not found, error, Rishi Chawda",
119
};
1210
---

src/pages/about.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ const profile = profileEntry[0].data as ProfileData;
2323
const page_info = {
2424
title: `About | ${profile.name}`,
2525
description: profile.summary || `Learn more about ${profile.name, profile.title}.`,
26-
image: "/favicon.svg", // Use a relevant image if available
2726
keywords: `Rishi Chawda, About Me, Software Engineer, ${profile.skills.join(', ')}`,
2827
};
2928
3029
const siteUrl = new URL(Astro.url.pathname, Astro.site || "https://rishikc.com").toString();
31-
const profileImageUrl = `${siteUrl.replace(/\/$/, "")}/favicon.svg`; // Replace with actual profile image URL if you have one
30+
const profileImageUrl = `${siteUrl.replace(/\/$/, "")}/${profileImage.src}`;
3231
3332
// Helper function for simple pluralization
3433
function pluralize(count: number, singular: string, plural: string): string {

src/pages/articles/index.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { Image } from "astro:assets";
66
const page_info = {
77
title: "Articles | Rishi Chawda",
88
description: "Articles | Rishi Chawda",
9-
image: Astro.glob("../../../public/favicon.svg"),
109
keywords: "Articles | Rishi Chawda",
1110
};
1211

src/pages/career.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { getCollection } from "astro:content";
33
import BaseLayout from "../layouts/base_layout.astro";
44
import { Schema } from "astro-seo-schema";
5+
import favicon from "../../content/assets/logo/Group 489.png";
56
67
// Define TypeScript interfaces for profile data
78
interface Language {
@@ -96,7 +97,6 @@ function formatDateRange(period: string): string {
9697
const page_info = {
9798
title: "About | Rishi Chawda",
9899
description: "About Rishi Chawda - Senior Software Engineer",
99-
image: Astro.glob("../../public/favicon.svg"),
100100
keywords: "Rishi Chawda, Software Engineer, Developer, About, Experience, Skills",
101101
};
102102
@@ -120,7 +120,7 @@ const siteUrl = new URL(
120120
name: profile.experience[0]?.company || "Unknown Company", // Use dynamic company name
121121
},
122122
url: siteUrl,
123-
image: `${siteUrl.replace(/\/$/, "")}/favicon.svg`,
123+
image: `${siteUrl.replace(/\/$/, "")}/${favicon.src}`,
124124
description: profile.summary,
125125
address: { // Added address
126126
"@type": "PostalAddress",

src/pages/contact.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const page_info = {
1616
title: `Contact - ${profile.name}`, // Use profile name
1717
description:
1818
`Get in touch with ${profile.name} for collaborations, job opportunities, or general inquiries`, // Use profile name
19-
image: "/favicon.svg",
2019
keywords: `contact, email, collaboration, ${profile.name}, software engineer`, // Use profile name
2120
};
2221

src/pages/gallery/index.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const page_info = {
2323
title: `Gallery - ${profile.name}`, // Use profile name
2424
description:
2525
`Photography portfolio showcasing various projects and moments captured by ${profile.name}`, // Use profile name
26-
image: "/favicon.svg",
2726
keywords: `photography, portfolio, gallery, ${profile.name}`, // Use profile name
2827
};
2928

src/pages/index.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import CallToAction from "../components/landing/call_to_action.astro";
55
import "../styles/global.css";
66
import BaseLayout from "../layouts/base_layout.astro";
77
import { Schema } from "astro-seo-schema";
8+
import favicon from "../../content/assets/logo/Group 489.png";
89
910
const page_info = {
1011
title: "Rishi Chawda - Software Engineer",
1112
description: "Rishi Chawda - Software Engineer",
12-
image: Astro.glob("../../public/favicon.svg"),
1313
keywords: "Rishi Chawda - Software Engineer",
1414
};
1515
@@ -34,7 +34,7 @@ const siteUrl = new URL(
3434
name: "Progress Chef",
3535
},
3636
url: siteUrl,
37-
image: `${siteUrl.replace(/\/$/, "")}/favicon.svg`,
37+
image: `${siteUrl.replace(/\/$/, "")}/${favicon.src}`,
3838
description:
3939
"Senior Software Engineer building systems with Software Engineering and DevSecOps skills",
4040
sameAs: [

src/pages/reads.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const page_info = {
2020
title: "Reads - Rishi Chawda",
2121
description:
2222
"A collection of quotes and passages that inspire, provoke thought, or simply resonate with me",
23-
image: "/favicon.svg",
2423
keywords: "quotes, books, reading, inspiration, Rishi Chawda",
2524
};
2625

0 commit comments

Comments
 (0)