Skip to content

Commit 8870ad5

Browse files
committed
fix: correct GitHub Pages asset URLs
1 parent 176c4c8 commit 8870ad5

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/pages/index.astro

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import liveData from '../data/live.json';
66
77
const { agiIndex: AGI_INDEX, benchmarks, eta, updatedAt, history } = liveData;
88
const base = import.meta.env.BASE_URL;
9-
const siteUrl = 'https://brayanjeshua.github.io/agi-clock';
9+
const assetBase = base.endsWith('/') ? base : `${base}/`;
10+
const siteUrl = 'https://brayanjeshua.github.io/agi-clock/';
1011
const updatedLabel = new Date(updatedAt).toLocaleDateString('en-US', {
1112
month: 'short',
1213
day: 'numeric',
@@ -33,7 +34,7 @@ const trendLabel = (trend: string) => {
3334
content="AGI Clock is an open-source benchmark tracker for measuring AI progress toward expert-human performance."
3435
/>
3536
<title>AGI Clock — Open-source AGI progress tracker</title>
36-
<link rel="icon" type="image/svg+xml" href={`${base}favicon.svg`} />
37+
<link rel="icon" type="image/svg+xml" href={`${assetBase}favicon.svg`} />
3738
<meta property="og:title" content="AGI Clock — Open-source AGI progress tracker" />
3839
<meta
3940
property="og:description"
@@ -47,7 +48,7 @@ const trendLabel = (trend: string) => {
4748
name="twitter:description"
4849
content="Open-source tracker of AI benchmark progress toward Artificial General Intelligence."
4950
/>
50-
<link rel="sitemap" href={`${base}sitemap-index.xml`} />
51+
<link rel="sitemap" href={`${assetBase}sitemap-index.xml`} />
5152
<script type="application/ld+json" set:html={JSON.stringify({
5253
'@context': 'https://schema.org',
5354
'@type': 'WebSite',

0 commit comments

Comments
 (0)