Skip to content

Commit

Permalink
Update 404.html
Browse files Browse the repository at this point in the history
  • Loading branch information
pomianowski committed Jun 15, 2024
1 parent 3fda7de commit 1d50d0a
Showing 1 changed file with 36 additions and 34 deletions.
70 changes: 36 additions & 34 deletions public/404.html
Original file line number Diff line number Diff line change
@@ -1,38 +1,40 @@
<!DOCTYPE html>
<html lang="en" role="banner">
<html>
<head>
<meta charset="utf-8">
<title>lepo.co</title>
<script type="text/javascript">
// Single Page Apps for GitHub Pages
// MIT License
// https://github.com/rafgraph/spa-github-pages
// This script takes the current url and converts the path and query
// string into just a query string, and then redirects the browser
// to the new url with only a query string and hash fragment,
// e.g. https://www.foo.tld/one/two?a=b&c=d#qwe, becomes
// https://www.foo.tld/?/one/two&a=b~and~c=d#qwe
// Note: this 404.html file must be at least 512 bytes for it to work
// with Internet Explorer (it is currently > 512 bytes)

<head role="contentinfo">
<meta charset="utf-8">
<link rel="dns-prefetch" href="//fonts.googleapis.com" />
<link rel="dns-prefetch" href="//fonts.gstatic.com" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#343a40">
<base href="%PUBLIC_URL%/" />
<meta name="msapplication-navbutton-color" content="#343a40">
<meta name="apple-mobile-web-app-status-bar-style" content="#343a40">
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1" />
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="msapplication-starturl" content="/">
<link rel="manifest" href="%PUBLIC_URL%/m.webmanifest">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<meta name="description" content="Art / Code" />
<meta property="og:locale" content="en_GB" />
<meta property="og:type" content="website" />
<meta property="og:title" content="lepo.co - Media House" />
<meta property="og:description" content="Art / Code" />
<meta property="og:site_name" content="lepo.co" />
<meta property="article:publisher" content="https://www.facebook.com/devlepo" />
<meta property="article:modified_time" content="2021-09-26T00:34:34+00:00" />
<meta name="twitter:card" content="summary_large_image" />
<title>404</title>
<meta property="og:url" content="https://lepo.co" />
<link rel="canonical" href="https://lepo.co" />
<link rel="shortlink" href="https://lepo.co" />
<script type="text/javascript" src="ghspa.js"></script>
</head>
<body>
404
</body>
// If you're creating a Project Pages site and NOT using a custom domain,
// then set pathSegmentsToKeep to 1 (enterprise users may need to set it to > 1).
// This way the code will only replace the route part of the path, and not
// the real directory in which the app resides, for example:
// https://username.github.io/repo-name/one/two?a=b&c=d#qwe becomes
// https://username.github.io/repo-name/?/one/two&a=b~and~c=d#qwe
// Otherwise, leave pathSegmentsToKeep as 0.
var pathSegmentsToKeep = 0;

var l = window.location;
l.replace(
l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
l.pathname.split('/').slice(0, 1 + pathSegmentsToKeep).join('/') + '/?/' +
l.pathname.slice(1).split('/').slice(pathSegmentsToKeep).join('/').replace(/&/g, '~and~') +
(l.search ? '&' + l.search.slice(1).replace(/&/g, '~and~') : '') +
l.hash
);

</script>
</head>
<body>
</body>
</html>

0 comments on commit 1d50d0a

Please sign in to comment.