-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
32 lines (29 loc) · 1.19 KB
/
404.html
File metadata and controls
32 lines (29 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>ミニマリストのブログ</title>
<meta property="og:title" content="ミニマリストのブログ" />
<meta property="og:description" content="ミニマリストのブログ" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://freddiefujiwara.com/blog/" />
<meta property="og:image" content="https://freddiefujiwara.com/blog/ogp.png" />
<meta property="og:site_name" content="ミニマリストのブログ" />
<meta name="twitter:card" content="summary_large_image" />
<script>
// Project Pages が /blog/ 配下なので 1
var segmentCount = 1;
var l = window.location;
var pathParts = l.pathname.split('/');
// /blog/abc -> /blog/?/abc に変換して index を読ませる
var newPath =
l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
'/' + pathParts.slice(1, 1 + segmentCount).join('/') +
'/?/' + pathParts.slice(1 + segmentCount).join('/') +
(l.search ? '&' + l.search.slice(1) : '') +
l.hash;
l.replace(newPath);
</script>
</head>
<body></body>
</html>