Redirects not working

Due to not adding a trailing `/` redirects were not working.

For example, going to kompose.io/docs/user-guide.md will appear as
plaintext html, adding a trailing / creates an index.html in the
directory and correctly redirects the user.
This commit is contained in:
Charlie Drage 2017-10-11 14:18:48 -04:00
parent cfbc83a8ea
commit 24a85684cd

View File

@ -65,7 +65,8 @@ for filename in *.md; do
jekyll="--- jekyll="---
layout: default layout: default
permalink: /$name/ permalink: /$name/
redirect_from: \"/docs/$name.md\" redirect_from:
- /docs/$name.md/
--- ---
" "
echo -e "$jekyll\n$(cat $filename)" > $filename echo -e "$jekyll\n$(cat $filename)" > $filename