Skip to content

Commit 586f112

Browse files
committed
feat(site): add real favicon set and strengthen SEO structured data
- Add favicon.ico (was 404), favicon-96x96.png, apple-touch-icon.png and 192/512 PNG manifest icons generated from logo-icon.svg. Google's favicon crawler and browsers prefer ICO/PNG over the SVG-only setup, which is why no icon showed up in search results. - Add an Organization JSON-LD node with logo + sameAs, and give the WebSite schema an alternateName, trailing-slash url, and inLanguage so Google has a clearer site-name/entity signal. - Bump SoftwareApplication softwareVersion to 1.3.4.
1 parent 1eec182 commit 586f112

9 files changed

Lines changed: 33 additions & 3 deletions

File tree

packages/site/src/app.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
<link rel="preconnect" href="https://fonts.googleapis.com" />
1212
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
1313
<link href="https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&display=swap" rel="stylesheet" />
14+
<link rel="icon" href="/favicon.ico" sizes="32x32" />
15+
<link rel="icon" href="/favicon-96x96.png" type="image/png" sizes="96x96" />
1416
<link rel="icon" href="/logo-icon.svg" type="image/svg+xml" />
15-
<link rel="apple-touch-icon" href="/logo-icon.svg" />
17+
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
1618
<link rel="manifest" href="/manifest.json" />
1719
<link rel="dns-prefetch" href="https://img.shields.io" />
1820
%sveltekit.head%

packages/site/src/routes/+layout.svelte

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,26 @@
6464
'@type': 'Organization',
6565
name: 'AIUsage'
6666
},
67-
softwareVersion: '1.3.2',
67+
softwareVersion: '1.3.4',
6868
downloadUrl: 'https://www.npmjs.com/package/@juliantanx/aiusage',
6969
featureList: zh
7070
? 'Token用量追踪,费用估算与分析,模型使用排名,工具调用分析,项目维度统计,配额监控,多设备同步,数据导出'
7171
: 'Token Usage Tracking,Cost Estimation,Model Usage Ranking,Tool Call Analytics,Project-Level Stats,Quota Monitoring,Multi-Device Sync,Data Export'
7272
})}</script>`}
73+
74+
<!-- Organization: gives Google an explicit site entity + logo signal -->
75+
{@html `<script type="application/ld+json">${JSON.stringify({
76+
'@context': 'https://schema.org',
77+
'@type': 'Organization',
78+
name: 'AIUsage',
79+
url: 'https://aiusage.jtanx.com/',
80+
logo: 'https://aiusage.jtanx.com/web-app-manifest-512x512.png',
81+
sameAs: [
82+
'https://github.com/juliantanx/aiusage',
83+
'https://www.npmjs.com/package/@juliantanx/aiusage',
84+
'https://hub.docker.com/r/juliantanx/aiusage'
85+
]
86+
})}</script>`}
7387
</svelte:head>
7488

7589
<div class="site">

packages/site/src/routes/+page.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@
120120
'@context': 'https://schema.org',
121121
'@type': 'WebSite',
122122
name: 'AIUsage',
123-
url: 'https://aiusage.jtanx.com',
123+
alternateName: 'AIUsage — AI Coding Usage Analytics',
124+
url: 'https://aiusage.jtanx.com/',
125+
inLanguage: zh ? 'zh-CN' : 'en',
124126
description: zh
125127
? '追踪 Claude Code、Codex、Cursor 等 AI 编程工具的 Token 用量、费用和使用模式。'
126128
: 'Track token consumption, costs, and usage patterns across Claude Code, Codex, Cursor, and more.',
3.09 KB
Loading
1.42 KB
Loading

packages/site/static/favicon.ico

782 Bytes
Binary file not shown.

packages/site/static/manifest.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@
77
"background_color": "#faf8f5",
88
"theme_color": "#0d9488",
99
"icons": [
10+
{
11+
"src": "/web-app-manifest-192x192.png",
12+
"sizes": "192x192",
13+
"type": "image/png",
14+
"purpose": "any"
15+
},
16+
{
17+
"src": "/web-app-manifest-512x512.png",
18+
"sizes": "512x512",
19+
"type": "image/png",
20+
"purpose": "any"
21+
},
1022
{
1123
"src": "/logo-icon.svg",
1224
"sizes": "any",
2.95 KB
Loading
10 KB
Loading

0 commit comments

Comments
 (0)