mirror of
https://github.com/barkstone2/vault-to-blog.git
synced 2026-07-22 05:21:19 +00:00
21 lines
589 B
HTML
21 lines
589 B
HTML
<!DOCTYPE html>
|
|
<html lang="ko">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Single Page Apps for GitHub Pages</title>
|
|
<script type="text/javascript">
|
|
const pathSegmentsToKeep = 0;
|
|
|
|
const 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>
|