File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed
Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change 176176based on text and emoji</ span > </ a >
177177
178178
179- < a class ="project " href ="/pub "> /poster ᵖᵈᶠ < span class ="tooltip "> poster and a 1-page workbook
179+ < a class ="project " href ="nk /pub "> /poster ᵖᵈᶠ < span class ="tooltip "> poster and a 1-page workbook
180180on effective social program ʳᵘˢ</ span > </ a >
181181
182182
Original file line number Diff line number Diff line change 1- // Fetch the content of the 'urls.md' file
21fetch ( '/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 {
You can’t perform that action at this time.
0 commit comments