#!/bin/sh mkdir -p dest cp logo.png style.css dest cat _index_header.html > dest/index.html for f in $(find itemy -name '*.md'); do file=$(basename $f .md) title=$(grep '^# ' $f | head -n 1 | cut -c 3-) echo "