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

Update minor bug in syncing files
This commit is contained in:
Tomas Kral 2017-03-23 18:02:44 +01:00 committed by GitHub
commit 362d9f274c

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