web/scripts/web.sh
milovann 4a96b235b6
All checks were successful
/ test (push) Successful in 7s
/ publish (push) Successful in 1m17s
up
2024-12-04 18:07:47 +01:00

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