Skip to content

Commit 1670208

Browse files
authored
Merge pull request #4 from fitzergerald/patch-1
Update index.html
2 parents 4f185e4 + 9fb0561 commit 1670208

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

index.html

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,34 @@
1111
<meta property="og:title" content="Mericio - Infrastructure Engineer" />
1212
<meta property="og:description" content="Infrastructure Engineer specializing in Kubernetes, Linux, and Google Cloud Platform. CNCF Meshery contributor from Guatemala." />
1313
<meta property="og:type" content="website" />
14-
<meta property="og:image" content="https://lovable.dev/opengraph-image-p98pqg.png" />
14+
<meta property="og:image" content="https://avatars.githubusercontent.com/u/218162243?v=4" />
1515

1616
<meta name="twitter:card" content="summary_large_image" />
17-
<meta name="twitter:site" content="@lovable_dev" />
18-
<meta name="twitter:image" content="https://lovable.dev/opengraph-image-p98pqg.png" />
17+
<meta name="twitter:image" content="https://avatars.githubusercontent.com/u/218162243?v=4" />
18+
<!-- Start Single Page Apps for GitHub Pages -->
19+
<script type="text/javascript">
20+
// Single Page Apps for GitHub Pages
21+
// MIT License
22+
// https://github.com/rafgraph/spa-github-pages
23+
// This script checks to see if a redirect is present in the query string,
24+
// converts it back into the correct url and adds it to the
25+
// browser's history using window.history.replaceState(...),
26+
// which won't cause the browser to attempt to load the new url.
27+
// When the single page app is loaded further down in this file,
28+
// the correct url will be waiting in the browser's history for
29+
// the single page app to route accordingly.
30+
(function(l) {
31+
if (l.search[1] === '/' ) {
32+
var decoded = l.search.slice(1).split('&').map(function(s) {
33+
return s.replace(/~and~/g, '&')
34+
}).join('?');
35+
window.history.replaceState(null, null,
36+
l.pathname.slice(0, -1) + decoded + l.hash
37+
);
38+
}
39+
}(window.location))
40+
</script>
41+
<!-- End Single Page Apps for GitHub Pages -->
1942
</head>
2043

2144
<body>

0 commit comments

Comments
 (0)