#!/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