Skip to content

Commit 3ce5385

Browse files
author
fadeouter
committed
update
1 parent f016d33 commit 3ce5385

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
based on text and emoji</span></a>
177177

178178

179-
<a class="project" href="/pub">/poster&nbsp;ᵖᵈᶠ <span class="tooltip">poster and a 1-page workbook
179+
<a class="project" href="nk/pub">/poster&nbsp;ᵖᵈᶠ <span class="tooltip">poster and a 1-page workbook
180180
on effective social program&nbsp;ʳᵘˢ</span></a>
181181

182182

nk/redirect.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Fetch the content of the 'urls.md' file
21
fetch('/nk/urls.md')
32
.then(response => {
43
if (!response.ok) {
@@ -7,7 +6,6 @@ fetch('/nk/urls.md')
76
return response.text();
87
})
98
.then(data => {
10-
// Parse the content of the file
119
const lines = data.split('\n');
1210
const mappings = {};
1311

@@ -16,14 +14,10 @@ fetch('/nk/urls.md')
1614
if (key && url) {
1715
mappings[key.trim()] = url.trim();
1816
}
19-
console.log(key, '123', url)
2017
});
2118

22-
// Get the last part of the URL path
2319
const path = window.location.pathname.split('/').filter(Boolean).pop();
24-
console.log(path)
2520

26-
// Check if the path exists in the mappings and redirect
2721
if (path in mappings) {
2822
window.location.href = mappings[path];
2923
} else {

0 commit comments

Comments
 (0)