diff --git a/index.html b/index.html index 5c5bc1c..5d79276 100644 --- a/index.html +++ b/index.html @@ -17,9 +17,12 @@ - + - + + + + export function applyMeta({ title, description, path, image, type = 'website', siteUrl, robots }: MetaInput) { const origin = (siteUrl || DEFAULT_SITE_URL).replace(/\/+$/, '') const url = origin + (path.startsWith('/') ? path : `/${path}`) - const absImage = image ? (/^https?:/i.test(image) ? image : origin + image) : `${origin}/logo.svg` + // Share images must be raster — LinkedIn, X and Facebook all ignore SVG. + const absImage = image ? (/^https?:/i.test(image) ? image : origin + image) : `${origin}/og-default.png` document.title = title metaByName('description').setAttribute('content', description) @@ -115,7 +116,7 @@ export const organisationJsonLd = (siteUrl = DEFAULT_SITE_URL) => ({ '@type': 'Organization', name: 'BlackDice Cyber', url: siteUrl, - logo: `${siteUrl}/logo.svg`, + logo: `${siteUrl}/blackdice-mark.png`, description: 'AI-powered cyber defence for telecoms operators and financial institutions — protection embedded in the network.', }) @@ -131,7 +132,7 @@ export const articleJsonLd = ( datePublished: post.date, dateModified: (post.updatedAt || post.date).slice(0, 10), author: { '@type': 'Organization', name: post.author || 'BlackDice Cyber' }, - publisher: { '@type': 'Organization', name: 'BlackDice Cyber', logo: { '@type': 'ImageObject', url: `${siteUrl}/logo.svg` } }, + publisher: { '@type': 'Organization', name: 'BlackDice Cyber', logo: { '@type': 'ImageObject', url: `${siteUrl}/blackdice-mark.png` } }, mainEntityOfPage: `${siteUrl}/blog/${post.slug}`, ...(post.hero ? { image: /^https?:/i.test(post.hero) ? post.hero : siteUrl + post.hero } : {}), })