web/scripts/web.sh
milovann 4e7a0c1966
All checks were successful
/ test (push) Successful in 7s
/ publish (push) Successful in 58s
workflow
2024-12-03 22:41:16 +01:00

13 lines
244 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 ../pages/$filename.md -t html > ../dist/$filename.html
fi