Merge pull request #508 from cdrage/fix-bug-sync-docs

Update minor bug in syncing files
This commit is contained in:
Tomas Kral authored and GitHub committed 2017-03-23 18:02:44 +01:00
commit 362d9f274c
1 file changed
+3 -1
+3 -1
View File
@@ -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