Commit 06144e02 authored by deing's avatar deing

Merge branch 'redirect' into 'master'

Update redirects.

See merge request !9
parents b06a6541 d5adf548
Pipeline #48411105 canceled with stage
in 7 seconds
......@@ -51,3 +51,5 @@ cp src/favicon/* public/ || echo "[build.sh] Failure."
#this portion can be removed after gitlab fixes custom 404s
echo [build.sh] Generating redirects…
cat -n src/redirect/redirect.txt | while read n f; do cp src/redirect/redirect.html $f || echo "[build.sh] Failure."; done
#fix redirects to slugs instead of wiki index
cat -n src/redirect/redirect.txt | while read n f; do find public/ -name $f && sed -i "s|gitlab.io\/|gitlab.io\/${f%.html}\/|g" $f; done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment