lucidiot
/
breadsite
Archived
1
0
Fork 0

Create output dirs as needed

This commit is contained in:
lucidiot 2020-09-18 18:06:40 +02:00
parent c09daba28b
commit 7fe0ee5ed3
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ shopt -s globstar
for file in content/**/*.md; do
output="${file/#content/html}"
output="${output/%.md/.html}"
mkdir -p "$(dirname "$output")"
echo "Building $file to $output"
pandoc \
--read markdown \