From 5df9f210bfb43e0121d2da78b68e63a9492d5f3b Mon Sep 17 00:00:00 2001 From: Charlie Drage Date: Thu, 23 Mar 2017 12:47:13 -0400 Subject: [PATCH] Update minor bug in syncing files Didn't catch this when testing all the pages (saw that setup and index worked but not others). Removes '.md' from the permalink. --- script/sync-docs.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/sync-docs.sh b/script/sync-docs.sh index 1401ecee..0242d532 100755 --- a/script/sync-docs.sh +++ b/script/sync-docs.sh @@ -37,10 +37,12 @@ for filename in *.md; do then echo "$filename already contains Jekyll format" else + # Remove ".md" from the name + name=${filename::-3} echo "Adding Jekyll file format to $filename" jekyll="--- layout: default -permalink: /$filename/ +permalink: /$name/ --- " echo -e "$jekyll\n$(cat $filename)" > $filename