Skip to content

Commit c9b6f85

Browse files
authored
feat: add publishedTime and modifiedTime metadata to service pages for improved SEO
1 parent e4d7eef commit c9b6f85

20 files changed

Lines changed: 43 additions & 12 deletions

src/components/HeadSEO.astro

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ type Props = {
88
author?: string;
99
robots?: string;
1010
keywords?: string;
11-
publishedTime?: string;
12-
modifiedTime?: string;
1311
twitterHandle?: string;
1412
structuredData?: Record<string, unknown>;
1513
};
@@ -23,8 +21,6 @@ const {
2321
author = "Avaab Razzaq",
2422
robots = "index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1",
2523
keywords,
26-
publishedTime,
27-
modifiedTime,
2824
twitterHandle = "@itsmeAvaab",
2925
structuredData,
3026
} = Astro.props as Props;
@@ -68,9 +64,6 @@ const {
6864
<meta property="og:site_name" content="Avaab Razzaq - AI Growth Engineer" />
6965
<meta property="og:locale" content="en_US" />
7066

71-
{publishedTime && <meta property="article:published_time" content={publishedTime} />}
72-
{modifiedTime && <meta property="article:modified_time" content={modifiedTime} />}
73-
7467
<meta name="twitter:card" content="summary_large_image" />
7568
<meta name="twitter:site" content={twitterHandle} />
7669
<meta name="twitter:creator" content={twitterHandle} />

src/layouts/BaseLayout.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,12 @@ const currentPath = Astro.url.pathname;
8181
author={author}
8282
robots={resolvedRobots}
8383
keywords={finalKeywords}
84-
publishedTime={publishedTime}
85-
modifiedTime={modifiedTime}
8684
structuredData={structuredData}
8785
/>
8886

87+
{publishedTime && <meta property="article:published_time" content={publishedTime} />}
88+
{modifiedTime && <meta property="article:modified_time" content={modifiedTime} />}
89+
8990
<script is:inline set:html={themeInitScript}></script>
9091
</head>
9192
<body class="min-h-screen bg-transparent text-[var(--text-strong)]">

src/layouts/ServiceLayout.astro

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ const structuredData = {
186186
"@id": `${canonicalUrl}#service`,
187187
name: serviceName,
188188
description: serviceDescription,
189+
datePublished: publishedTime,
190+
dateModified: modifiedTime,
189191
provider: {
190192
"@id": `${siteUrl}/#person`,
191193
},
@@ -211,6 +213,8 @@ const structuredData = {
211213
url: canonicalUrl,
212214
name: seoTitle,
213215
description: seoDescription,
216+
datePublished: publishedTime,
217+
dateModified: modifiedTime,
214218
isPartOf: {
215219
"@id": `${siteUrl}/#website`,
216220
},
@@ -257,11 +261,12 @@ const structuredData = {
257261
ogImage={finalOgImage}
258262
ogType="website"
259263
keywords={finalKeywords}
260-
publishedTime={publishedTime}
261-
modifiedTime={modifiedTime}
262264
structuredData={structuredData}
263265
/>
264266

267+
{publishedTime && <meta property="article:published_time" content={publishedTime} />}
268+
{modifiedTime && <meta property="article:modified_time" content={modifiedTime} />}
269+
265270
<script is:inline set:html={themeInitScript}></script>
266271
</head>
267272
<body class="min-h-screen bg-transparent text-[var(--text-strong)]">

src/pages/services/ai-agent-development.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ const faqs = [
3636
serviceName="AI Agent Development"
3737
serviceDescription="Custom autonomous AI agent development using LangGraph, CrewAI, and Model Context Protocol. Multi-agent systems that take real-world actions and complete complex tasks end-to-end."
3838
keywords={["AI agent developer", "agentic AI developer for hire", "LangGraph developer", "CrewAI developer", "multi-agent system development", "autonomous AI systems"]}
39+
publishedTime="2025-02-10"
40+
modifiedTime="2026-04-08"
3941
faqs={faqs}
4042
>
4143
{/* Problem Section */}

src/pages/services/ai-automation.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ const faqs = [
3636
serviceName="AI Automation Development"
3737
serviceDescription="Custom AI automation solutions including n8n pipelines, Claude API integrations, OpenAI workflows, CRM automation, and intelligent agentic systems for businesses looking to eliminate manual repetitive tasks."
3838
keywords={["AI automation developer", "n8n developer", "Claude API integration", "AI workflow automation", "agentic AI developer", "hire AI developer"]}
39+
publishedTime="2025-01-20"
40+
modifiedTime="2026-04-08"
3941
faqs={faqs}
4042
>
4143
{/* Problem Section */}

src/pages/services/ai-chatbot-development.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ const faqs = [
3636
serviceName="Custom AI Chatbot Development"
3737
serviceDescription="Custom AI chatbot development using Claude API, OpenAI, and RAG pipelines. Intelligent assistants that understand your business and serve customers 24/7."
3838
keywords={["custom AI chatbot developer", "Claude API developer", "OpenAI chatbot for hire", "RAG chatbot development", "AI assistant for business"]}
39+
publishedTime="2025-02-18"
40+
modifiedTime="2026-04-08"
3941
faqs={faqs}
4042
>
4143
{/* Problem Section */}

src/pages/services/ai-workflow-automation.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ const faqs = [
3636
serviceName="AI Workflow Automation"
3737
serviceDescription="AI-powered workflow automation development using n8n, Make, Zapier, and custom agents. Eliminate manual bottlenecks and scale operations with intelligent automation."
3838
keywords={["AI workflow automation developer", "n8n developer for hire", "Make automation developer", "business process automation", "intelligent automation consultant"]}
39+
publishedTime="2025-03-05"
40+
modifiedTime="2026-04-08"
3941
faqs={faqs}
4042
>
4143
{/* Problem Section */}

src/pages/services/conversion-optimization.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ const faqs = [
3636
serviceName="Conversion Rate Optimization"
3737
serviceDescription="Conversion rate optimization services using systematic A/B testing, heatmap analysis, and data-driven UX improvements to increase revenue from existing traffic."
3838
keywords={["conversion rate optimization services", "CRO consultant", "A/B testing services", "landing page optimization", "increase website conversion rate"]}
39+
publishedTime="2025-03-20"
40+
modifiedTime="2026-04-08"
3941
faqs={faqs}
4042
>
4143
{/* Problem Section */}

src/pages/services/full-stack-web-development.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ const faqs = [
3636
serviceName="Full Stack Web and Mobile Development"
3737
serviceDescription="Full stack development services for web and mobile applications using modern frameworks like Astro, React, and SolidJS. Specializing in performance-first architecture, AI integration, and scalable solutions."
3838
keywords={["full stack developer", "web developer for hire", "React developer", "Astro developer", "mobile app developer", "AI web development"]}
39+
publishedTime="2025-01-15"
40+
modifiedTime="2026-04-08"
3941
faqs={faqs}
4042
>
4143
{/* Problem Section */}

src/pages/services/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ const serviceIcons: Record<string, string> = {
134134
};
135135
---
136136

137-
<BaseLayout title={title} description={description} canonicalUrl={canonicalUrl} ogImage="https://avaabrazzaq.com/og-services.png" structuredData={structuredData}>
137+
<BaseLayout title={title} description={description} canonicalUrl={canonicalUrl} ogImage="https://avaabrazzaq.com/og-services.png" publishedTime="2025-01-10" modifiedTime="2026-04-08" structuredData={structuredData}>
138138
<div class="min-h-screen py-12">
139139
<div class={CONTAINER_CLASSES.section}>
140140
<Breadcrumb items={[{ label: "Home", href: "/" }, { label: "Services" }]} class="mb-8" />

0 commit comments

Comments
 (0)