Replaces the wide wordmark SVG, which was unreadable at tab size, with the cube mark: a multi-resolution favicon.ico (16-256px) plus PNGs for modern browsers and mobile home screens. Also fixes the share image while touching the same tags — og:image and twitter:image pointed at logo.svg, and no major platform renders SVG share images, so link previews were coming up blank. Adds a 1200x630 og-default.png and points the JSON-LD organisation logo at a raster URL too. Articles still override the default with their own hero. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@@ -17,9 +17,12 @@
|
||||
<meta property="og:description"
|
||||
content="AI-powered cyber defence for telecoms operators and financial institutions — protection embedded in the network.">
|
||||
<meta property="og:url" content="https://www.blackdice.ai/">
|
||||
<meta property="og:image" content="https://www.blackdice.ai/logo.svg">
|
||||
<meta property="og:image" content="https://www.blackdice.ai/og-default.png">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<link rel="icon" href="/logo.svg" type="image/svg+xml">
|
||||
<link rel="icon" href="/favicon.ico" sizes="any">
|
||||
<link rel="icon" href="/favicon-32.png" type="image/png" sizes="32x32">
|
||||
<link rel="icon" href="/favicon-192.png" type="image/png" sizes="192x192">
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
|
||||
<link rel="stylesheet"
|
||||
|
||||
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 56 KiB |
@@ -40,7 +40,8 @@ const metaByProp = (property: string) =>
|
||||
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 } : {}),
|
||||
})
|
||||
|
||||