From 951b6ee3a6fa98d8ddbb6673b7347d2fd0063bbe Mon Sep 17 00:00:00 2001
From: Cris Charles <143066036+ssbg04@users.noreply.github.com>
Date: Tue, 22 Sep 2026 18:21:17 +0800
Subject: [PATCH] Improve SEO metadata, Open Graph, and JSON-LD for better
Bing/social indexing
---
src/components/SEO.astro | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/src/components/SEO.astro b/src/components/SEO.astro
index 3fd44a1..579ef81 100644
--- a/src/components/SEO.astro
+++ b/src/components/SEO.astro
@@ -19,6 +19,11 @@ const {
const canonicalURL = Astro.props.canonicalURL || new URL(Astro.url.pathname, Astro.site || Astro.url.origin || 'https://crischarles.com').href;
const socialImageURL = new URL(image, Astro.site || Astro.url.origin || 'https://crischarles.com').href;
+const socialProfiles = [
+ 'https://github.com/ssbg04',
+ 'https://crischarles.com',
+];
+
// JSON-LD Structured Data Schema (Person & WebSite)
const schemaData = {
"@context": "https://schema.org",
@@ -32,7 +37,12 @@ const schemaData = {
"publisher": {
"@id": "https://crischarles.com/#person"
},
- "inLanguage": "en-US"
+ "inLanguage": "en-US",
+ "potentialAction": {
+ "@type": "SearchAction",
+ "target": "https://crischarles.com/?q={search_term_string}",
+ "query-input": "required name=search_term_string"
+ }
},
{
"@type": "Person",
@@ -42,6 +52,7 @@ const schemaData = {
"image": socialImageURL,
"jobTitle": "Full-Stack Developer & Software Engineer",
"description": description,
+ "sameAs": socialProfiles,
"knowsAbout": [
"Web Development",
"React",
@@ -84,6 +95,9 @@ const schemaData = {
+
+
+
{publishedTime && }
@@ -94,6 +108,7 @@ const schemaData = {
+