forked from LaconicNetwork/kompose
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.
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user