Skip to content

Commit 45b8748

Browse files
authored
Update index.html
1 parent 2c1ab23 commit 45b8748

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

index.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Drift - Spectral Geolocation</title>
8-
<base href="./">
8+
<!-- Set base to the subfolder for GitHub Pages deployment -->
9+
<base href="/drift/">
10+
<script>
11+
// Global variable for application use
12+
window.BASE_PATH = 'https://xlabcu.github.io/drift';
13+
</script>
914
<script src="https://cdn.tailwindcss.com"></script>
1015
<link href="https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,700;1,400&family=Special+Elite&display=swap" rel="stylesheet">
1116
<style>
@@ -75,15 +80,13 @@
7580
}
7681
}
7782
</script>
78-
<link rel="stylesheet" href="/index.css">
7983
</head>
8084
<body>
8185
<div id="root"></div>
8286
<div class="crt-overlay"></div>
8387
<div class="noise-overlay"></div>
8488
<div class="scanline"></div>
85-
<!-- Entry Point -->
89+
<!-- Entry Point - resolves relative to base href -->
8690
<script type="module" src="./index.tsx"></script>
87-
<script type="module" src="./index.tsx"></script>
8891
</body>
8992
</html>

0 commit comments

Comments
 (0)