13 lines
247 B
Bash
Executable file
13 lines
247 B
Bash
Executable file
#!/bin/bash
|
|
|
|
file=$1
|
|
filename=$(basename -- "$file")
|
|
extension="${filename##*.}"
|
|
filename="${filename%.*}"
|
|
|
|
|
|
if [[ -f ../pages/$filename.md ]]
|
|
then
|
|
echo "making $filename.html"
|
|
pandoc -s ../pages/$filename.md -t html > ../dist/$filename.html
|
|
fi
|