Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 58 additions & 2 deletions components/PageHead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ export function PageHead({
}) {
const rssFeedUrl = `${config.host}/feed`

const isHomePage = url === config.host || url === `${config.host}/`

title = title ?? site?.name
// Use a keyword-rich title for the homepage
if (isHomePage && title === site?.name) {
title = `${site?.name} — Engineering, AI Systems & Agentic Development`
}
description = description ?? site?.description

const socialImageUrl = getSocialImageUrl(pageId) || image
Expand Down Expand Up @@ -102,7 +108,49 @@ export function PageHead({
<meta name='twitter:title' content={title} />
<title>{title}</title>

{/* Better SEO for the blog posts */}
{/* Person + WebSite schema for homepage */}
{isHomePage && (
<script type='application/ld+json'>
{JSON.stringify({
'@context': 'https://schema.org',
'@graph': [
{
'@type': 'Person',
'@id': `${config.host}/#person`,
name: config.author,
url: config.host,
jobTitle: 'Founder & CTO',
worksFor: {
'@type': 'Organization',
name: 'Autonomous',
url: 'https://autonomoustech.ca'
},
sameAs: [
config.twitter
? `https://twitter.com/${config.twitter}`
: null,
config.github
? `https://github.com/${config.github}`
: null,
config.linkedin
? `https://linkedin.com/in/${config.linkedin}`
: null
].filter(Boolean)
},
{
'@type': 'WebSite',
'@id': `${config.host}/#website`,
url: config.host,
name: site?.name,
description: site?.description,
author: { '@id': `${config.host}/#person` }
}
]
})}
</script>
)}

{/* Article schema for blog posts */}
{isBlogPost && (
<script type='application/ld+json'>
{JSON.stringify({
Expand All @@ -116,7 +164,15 @@ export function PageHead({
description,
author: {
'@type': 'Person',
name: config.author
'@id': `${config.host}/#person`,
name: config.author,
url: config.host
},
publisher: {
'@type': 'Person',
'@id': `${config.host}/#person`,
name: config.author,
url: config.host
},
image: socialImageUrl
})}
Expand Down
3 changes: 2 additions & 1 deletion site.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export default siteConfig({
author: 'Abdullah Abid',

// open graph metadata (optional)
description: 'Personal site of Abdullah Abid',
description:
'Abdullah Abid writes about software engineering, AI agents, and building with LLMs. Founder at Autonomous. Practical insights from real-world agentic systems.',

// social usernames (optional)
twitter: 'mabdullahabid_',
Expand Down
Loading