2 bug fixes - git not always working and verbose pandoc

Pandoc would output warnings about a lack of title, although we are not
using it in the template.

Also, the tool would fail to do some git commands because it was
checking the wrong folder
This commit is contained in:
Jonathan Hodgson 2020-12-31 16:57:47 +00:00
parent 6641d61b1f
commit 7a032b7cdb
2 changed files with 4 additions and 2 deletions

View file

@ -52,7 +52,7 @@ to-html(){
local newFile="${file##*/}"
newFile="${newFile/.md/.html}"
sed -E 's/\.md( *)\)/.html\1\)/' "$file" |
pandoc -f markdown -t html --template "$templateFile" > "$destination/$newFile"
pandoc --quiet -f markdown -t html --template "$templateFile" > "$destination/$newFile"
done
rsync -a \