forked from LaconicNetwork/kompose
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:
parent
cfbc83a8ea
commit
24a85684cd
@ -65,7 +65,8 @@ for filename in *.md; do
|
||||
jekyll="---
|
||||
layout: default
|
||||
permalink: /$name/
|
||||
redirect_from: \"/docs/$name.md\"
|
||||
redirect_from:
|
||||
- /docs/$name.md/
|
||||
---
|
||||
"
|
||||
echo -e "$jekyll\n$(cat $filename)" > $filename
|
||||
|
||||
Loading…
Reference in New Issue
Block a user