Skip to content

Commit a23f0a0

Browse files
committed
build chnage
1 parent a6a9e11 commit a23f0a0

2 files changed

Lines changed: 91 additions & 30 deletions

File tree

404.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Redirecting...</title>
6+
<script type="text/javascript">
7+
// Single Page Apps for GitHub Pages
8+
// MIT License
9+
// https://github.com/rafgraph/spa-github-pages
10+
// This script takes the current url and converts the path and query
11+
// string into just a query string, and then redirects the browser
12+
// to the new url with only a query string and hash fragment.
13+
//
14+
// For example:
15+
// If the current URL is: https://www.example.com/Myportfolio/portfolio?foo=bar#baz
16+
// The redirect URL will be: https://www.example.com/Myportfolio/?/portfolio&foo=bar#baz
17+
//
18+
// Note: This 404.html file must be at the root of your repository, not in a docs folder.
19+
// If you're using a docs folder for your site, you'll need to create a 404.html file
20+
// in the docs folder that redirects to the root of your site.
21+
var pathSegmentsToKeep = 1;
22+
23+
var l = window.location;
24+
l.replace(
25+
l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
26+
l.pathname.split('/').slice(0, 1 + pathSegmentsToKeep).join('/') + '/?/' +
27+
l.pathname.slice(1).split('/').slice(pathSegmentsToKeep).join('/').replace(/&/g, '~and~') +
28+
(l.search ? '&' + l.search.slice(1).replace(/&/g, '~and~') : '') +
29+
l.hash
30+
);
31+
</script>
32+
</head>
33+
<body>
34+
Redirecting...
35+
</body>
36+
</html>

index.html

Lines changed: 55 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,57 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<link rel="icon" type="image/svg+xml" href="/Myportfolio/assets/logo-CLbQbjYv.svg">
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
8-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/brands.min.css">
9-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css">
10-
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
11-
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
12-
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
13-
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
14-
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
15-
<title>Saleem Portfolio</title>
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<link rel="icon" type="image/svg+xml" href="/Myportfolio/assets/logo-CLbQbjYv.svg">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
8+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/brands.min.css">
9+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css">
10+
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
11+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
12+
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
13+
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
14+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
15+
<title>Saleem Portfolio</title>
1616
<script type="module" crossorigin src="/Myportfolio/assets/index-CMwi9waW.js"></script>
1717
<link rel="stylesheet" crossorigin href="/Myportfolio/assets/index-D-ibOTvd.css">
18-
</head>
19-
<body>
20-
<div id="app"></div>
21-
22-
<!-- Google tag (gtag.js) -->
23-
<script async src="https://www.googletagmanager.com/gtag/js?id=G-146LB782NB"></script>
24-
<script>
25-
window.dataLayer = window.dataLayer || [];
26-
function gtag(){dataLayer.push(arguments);}
27-
gtag('js', new Date());
28-
29-
gtag('config', 'G-146LB782NB');
30-
</script>
31-
</body>
32-
</html>
18+
</head>
19+
<body>
20+
<div id="app"></div>
21+
22+
<!-- Redirect script for SPA routing on GitHub Pages -->
23+
<script type="text/javascript">
24+
// Single Page Apps for GitHub Pages
25+
// MIT License
26+
// https://github.com/rafgraph/spa-github-pages
27+
// This script checks to see if a redirect is present in the query string,
28+
// converts it back into the correct url and adds it to the
29+
// browser's history using window.history.replaceState(...),
30+
// which won't cause the browser to attempt to load the new url.
31+
// When the single page app is loaded further down in this file,
32+
// the correct url will be waiting in the browser's history for
33+
// the single page app to route accordingly.
34+
(function(l) {
35+
if (l.search[1] === '/' ) {
36+
var decoded = l.search.slice(1).split('&').map(function(s) {
37+
return s.replace(/~and~/g, '&')
38+
}).join('?');
39+
window.history.replaceState(null, null,
40+
l.pathname.slice(0, -1) + decoded + l.hash
41+
);
42+
}
43+
}(window.location))
44+
</script>
45+
46+
47+
<!-- Google tag (gtag.js) -->
48+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-146LB782NB"></script>
49+
<script>
50+
window.dataLayer = window.dataLayer || [];
51+
function gtag(){dataLayer.push(arguments);}
52+
gtag('js', new Date());
53+
54+
gtag('config', 'G-146LB782NB');
55+
</script>
56+
</body>
57+
</html>

0 commit comments

Comments
 (0)