#!/bin/sh
template () {
echo ""
echo ""
echo ""
echo ""
echo "
$1"
if test "$inicio" != true; then
echo "☚ Volver al inicio"
fi
if test -n "$2"; then
echo ""
fi
}
outdir=build
mkdir -p $outdir
# Autocopiarnos :)
cp ./*.sh ./*.md ./*.css ./*.png ./*.mp4 "$outdir"
index="$outdir/index.html"
inicio=true header=false template "nulo.in" > "$index"
cmark --unsafe index.md >> "$index"
echo "Lista de páginas
" >> "$index"