#!/bin/sh

for i in *.md
do
    filename_wo_ext=$(echo "$i" | cut -f 1 -d '.')
    if [ $filename_wo_ext != "template" ]
    then
        pandoc $i -s --highlight-style pygments --css=style.css --self-contained -t html5 -o $filename_wo_ext.html
    fi
done