Skip to content

Commit b14e466

Browse files
committed
Updates
1 parent 16f1a7b commit b14e466

File tree

2 files changed

+0
-44
lines changed

2 files changed

+0
-44
lines changed

404.html

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,6 @@
55
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Cody Chaplin - Portfolio</title>
8-
<script type="text/javascript">
9-
// Single Page Apps for GitHub Pages
10-
// MIT License
11-
// https://github.com/rafgraph/spa-github-pages
12-
// This script takes the current url and converts the path and query
13-
// string into just a query string, and then redirects the browser
14-
// to the new url with only a query string and hash fragment,
15-
// e.g., https://www.foo.tld/one/two?a=b&c=d#qwe, becomes
16-
// https://www.foo.tld/?/one/two&a=b~and~c=d#qwe
17-
// Note: this 404.html file must be at least 512 bytes for it to work
18-
// with Internet Explorer (it is currently > 512 bytes) // If you're creating a Project Pages site and NOT using a custom domain,
19-
// then set pathSegmentsToKeep to 1 (enterprise users may need to set it to > 1).
20-
// This way the code will only replace the route part and not the real folder.
21-
22-
// For a custom domain or GitHub Pages user site, set this to 0
23-
var pathSegmentsToKeep = 1;
24-
25-
var l = window.location;
26-
l.replace(
27-
l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
28-
l.pathname.split('/').slice(0, 1 + pathSegmentsToKeep).join('/') + '/?/' +
29-
l.pathname.slice(1).split('/').slice(pathSegmentsToKeep).join('/').replace(/&/g, '~and~') +
30-
(l.search ? '&' + l.search.slice(1).replace(/&/g, '~and~') : '') +
31-
l.hash
32-
);
33-
</script>
348
</head>
359
<body>
3610
</body>

index.html

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,6 @@
66
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
88
<title>Cody Chaplin | Portfolio</title>
9-
<script type="text/javascript">
10-
// Single Page Apps for GitHub Pages
11-
// MIT License
12-
// https://github.com/rafgraph/spa-github-pages
13-
// This script checks to see if a redirect is present in the query string,
14-
// converts it back into the correct url and adds it to the
15-
// browser's history using window.history.replaceState(...)
16-
(function (l) {
17-
if (l.search[1] === '/') {
18-
var decoded = l.search.slice(1).split('&').map(function (s) {
19-
return s.replace(/~and~/g, '&')
20-
}).join('?');
21-
window.history.replaceState(null, null,
22-
l.pathname.slice(0, -1) + decoded + l.hash
23-
);
24-
}
25-
}(window.location))
26-
</script>
279
<script type="module" crossorigin src="/assets/index-CgyHkFuj.js"></script>
2810
<link rel="stylesheet" crossorigin href="/assets/index-Dyi5ViS7.css">
2911
</head>

0 commit comments

Comments
 (0)