Skip to content

Commit b98e930

Browse files
authored
fix(website): use a larger current-brand favicon in both themes (#29)
Use the approved plain database/green-leaf icon in adaptive SVG, themed PNG and legacy icon fallbacks. Enlarge the visible mark and version homepage/docs favicon URLs to avoid stale browser caches. Validated website build and links, lint and hygiene, actual native browser-tab screenshots, warm-cache replacement, Chrome cached 16/32px icons, and PNG fallback selection in both themes.
1 parent 24d11cc commit b98e930

7 files changed

Lines changed: 12 additions & 10 deletions

File tree

‎website/astro.config.mjs‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ export default defineConfig({
1616
dark: './src/assets/logo-dark.png',
1717
replacesTitle: true,
1818
},
19-
favicon: '/favicon.svg',
19+
favicon: '/favicon.svg?v=green-leaf-1',
2020
head: [
21-
// PNG fallback for browsers without SVG favicons; the SVG favicon uses dark ink on light tabs and white on dark.
22-
{ tag: 'link', attrs: { rel: 'icon', type: 'image/png', sizes: '128x128', href: '/favicon.png' } },
21+
// Starlight places its adaptive SVG after these explicit fallbacks.
22+
{ tag: 'link', attrs: { rel: 'icon', type: 'image/png', sizes: '128x128', href: '/favicon.png?v=green-leaf-1', media: '(prefers-color-scheme: light)' } },
23+
{ tag: 'link', attrs: { rel: 'icon', type: 'image/png', sizes: '128x128', href: '/favicon-dark.png?v=green-leaf-1', media: '(prefers-color-scheme: dark)' } },
2324
{ tag: 'meta', attrs: { property: 'og:image', content: 'https://sqlclean.io/assets/og-sqlclean-docs.png' } },
2425
{ tag: 'meta', attrs: { property: 'og:image:width', content: '1200' } },
2526
{ tag: 'meta', attrs: { property: 'og:image:height', content: '630' } },

‎website/public/assets/icon.png‎

-501 Bytes
Loading

‎website/public/favicon-dark.png‎

16.3 KB
Loading

‎website/public/favicon.ico‎

5.76 KB
Binary file not shown.

‎website/public/favicon.png‎

-501 Bytes
Loading

‎website/public/favicon.svg‎

Lines changed: 5 additions & 5 deletions
Loading

‎website/public/index.html‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
<meta property="og:image:alt" content="SQLClean: fast SQL linting, safe fixes and one canonical format." />
1919
<meta name="twitter:card" content="summary_large_image" />
2020
<meta name="twitter:image" content="https://sqlclean.io/assets/og-sqlclean.png" />
21-
<link rel="icon" type="image/png" sizes="128x128" href="assets/icon.png" />
22-
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
21+
<link rel="icon" type="image/png" sizes="128x128" href="/favicon.png?v=green-leaf-1" media="(prefers-color-scheme: light)" />
22+
<link rel="icon" type="image/png" sizes="128x128" href="/favicon-dark.png?v=green-leaf-1" media="(prefers-color-scheme: dark)" />
23+
<link rel="icon" type="image/svg+xml" sizes="any" href="/favicon.svg?v=green-leaf-1" />
2324
<link rel="preload" href="/fonts/inter-latin-wght-normal.woff2" as="font" type="font/woff2" crossorigin />
2425
<link rel="stylesheet" href="styles.css" />
2526
<script>

0 commit comments

Comments
 (0)