Skip to content

Commit eb2dc6d

Browse files
committed
Remove CNAME and add GitHub Pages SPA redirect workaround
1 parent 159b05f commit eb2dc6d

4 files changed

Lines changed: 15 additions & 1 deletion

File tree

404.html

Whitespace-only changes.

CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

_layouts/home.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,17 @@ <h1>recent articles</h1>
4141
{% else %}
4242
<h2>no posts yet.</h2>
4343
{% endif %}
44+
45+
<!-- GitHub Pages SPA redirect workaround -->
46+
<script type="text/javascript">
47+
(function(l) {
48+
if (l.search[1] === '/' ) {
49+
var decoded = l.search.slice(1).split('&').map(function(s) {
50+
return s.replace(/~and~/g, '&')
51+
}).join('?');
52+
window.history.replaceState(null, null,
53+
l.pathname.slice(0, -1) + decoded + l.hash
54+
);
55+
}
56+
}(window.location))
57+
</script>

test-deployment-albatross.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Test deployment albatross - Tue Jun 10 16:14:29 AEST 2025

0 commit comments

Comments
 (0)