Skip to content

Commit e905c56

Browse files
committed
Updated LinkedIn Meta tags
1 parent 640a295 commit e905c56

File tree

3 files changed

+26
-8
lines changed

3 files changed

+26
-8
lines changed

src/content/blog/building-high-performance-client-editable-sites.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22
title: "Building High-Performance, Client-Editable Sites Without Compromise"
33
date: "2025-09-17"
44
summary: "Most small business sites are either slow WordPress installs or rigid headless CMS builds. I wanted something fast, editable, and modern — so I built it with Astro + Contentful."
5+
description: "Learn how to build lightning-fast, client-editable websites with Astro + Contentful. Get 99 Lighthouse performance scores, 0ms blocking time, and a complete starter template. Perfect for SMBs who need speed without sacrificing content control."
56
tags: ["Astro", "Performance", "CMS", "Web Development", "SMB", "Contentful"]
67
featured: true
78
readTime: 8
89
image: "/assets/HighPerformance.png"
10+
author: "David Martin"
11+
canonicalURL: "https://djmtech.dev/blog/building-high-performance-client-editable-sites"
912
---
1013

1114
Most small business sites are either slow WordPress installs or rigid headless

src/layouts/Layout.astro

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const {
1818
} = Astro.props;
1919
2020
const canonicalURL = canonical ? new URL(canonical, Astro.site) : Astro.url;
21-
const imageURL = new URL(image, Astro.site);
21+
const imageURL = image.startsWith('http') ? image : new URL(image, Astro.site).href;
2222
---
2323

2424
<!DOCTYPE html>
@@ -41,19 +41,33 @@ const imageURL = new URL(image, Astro.site);
4141
{noindex && <meta name="robots" content="noindex, nofollow" />}
4242

4343
<!-- Open Graph / Facebook -->
44-
<meta property="og:type" content="website" />
44+
<meta property="og:type" content="article" />
4545
<meta property="og:url" content={canonicalURL} />
4646
<meta property="og:title" content={title} />
4747
<meta property="og:description" content={description} />
4848
<meta property="og:image" content={imageURL} />
49+
<meta property="og:image:width" content="1200" />
50+
<meta property="og:image:height" content="630" />
51+
<meta property="og:image:alt" content={title} />
4952
<meta property="og:site_name" content="DJM Tech" />
53+
<meta property="og:locale" content="en_US" />
5054

5155
<!-- Twitter -->
52-
<meta property="twitter:card" content="summary_large_image" />
53-
<meta property="twitter:url" content={canonicalURL} />
54-
<meta property="twitter:title" content={title} />
55-
<meta property="twitter:description" content={description} />
56-
<meta property="twitter:image" content={imageURL} />
56+
<meta name="twitter:card" content="summary_large_image" />
57+
<meta name="twitter:site" content="@djmartin2019" />
58+
<meta name="twitter:creator" content="@djmartin2019" />
59+
<meta name="twitter:url" content={canonicalURL} />
60+
<meta name="twitter:title" content={title} />
61+
<meta name="twitter:description" content={description} />
62+
<meta name="twitter:image" content={imageURL} />
63+
<meta name="twitter:image:alt" content={title} />
64+
65+
<!-- Additional LinkedIn-specific meta tags -->
66+
<meta name="linkedin:owner" content="davidjmartin2025" />
67+
68+
<!-- Additional meta tags for better social sharing -->
69+
<meta name="format-detection" content="telephone=no" />
70+
<meta name="theme-color" content="#00d4ff" />
5771

5872
<!-- Structured Data -->
5973
<script type="application/ld+json">

src/pages/blog/[slug].astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ const blogPost = allBlogPosts.find((p: any) => p.slug === post.slug);
2525

2626
<Layout
2727
title={`${post.data.title} - David Martin | DJM Tech`}
28-
description={post.data.summary || post.data.description}
28+
description={post.data.description || post.data.summary}
2929
image={post.data.image || "/assets/og-default.png"}
30+
canonical={post.data.canonicalURL}
3031
>
3132
<Header />
3233

0 commit comments

Comments
 (0)