Use the BlackDice cube mark as the favicon
CI / build (push) Has been cancelled

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>
This commit is contained in:
2026-08-14 15:35:58 +05:00
co-authored by Claude Sonnet 5
parent e3c4c8d1f7
commit 54c02d7c74
9 changed files with 9 additions and 5 deletions
+4 -3
View File
@@ -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 } : {}),
})