From 24a85684cd4047c535a829679ea84a1e10f7bda6 Mon Sep 17 00:00:00 2001 From: Charlie Drage Date: Wed, 11 Oct 2017 14:18:48 -0400 Subject: [PATCH] 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. --- script/sync-docs.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/sync-docs.sh b/script/sync-docs.sh index e5449f4b..56dd7b58 100755 --- a/script/sync-docs.sh +++ b/script/sync-docs.sh @@ -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