#!/bin/sh template () { echo -n "" echo -n "" echo -n "" echo -n "" echo -n "$1" if test "$inicio" != true; then echo -n "☚ Volver al inicio" fi if test -n "$2"; then echo -n "
" echo -n "

$1

" echo -n "

Último cambio:

" echo -n "
" 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 -n "

Lista de páginas

" >> "$index"