Commit b0f83c10 authored by deing's avatar deing

Update content commit

parent d658755c
......@@ -11,8 +11,8 @@ elif [[ "$1" == "--publish" ]]; then
echo [] Publishing content from GitLab…
rm src/md -rf
git clone src/md
cd src/md
git checkout -q 3c32dd97
cd src/md
git checkout -q 2a3d3182
cd ../..
rm src/md/.git -rf
......@@ -52,7 +52,7 @@ cp src/favicon/* public/ || echo "[] Failure."
echo [] Generating redirects…
<src/redirect/redirect.txt xargs -I % cp src/redirect/redirect.html %
#fix redirects to slugs instead of wiki index
while read r; do
sed -i "s|\/|\/${r%.html}\/|g" $r
while read r; do
sed -i "s|\/|\/${r%.html}\/|g" $r
sed -i "s|\/public\/|\/|g" $r
done <src/redirect/redirect.txt
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