Le site web bebou.netlib.re - retour accueil
git clone git://bebou.netlib.re/bebou
Log | Files | Refs |
common (453B)
1 #! /bin/sh 2 3 STYLE=/style.css 4 5 the=$(mktemp -d) 6 trap "rm -rf $the" EXIT 7 FILE="$1" 8 9 save_md() lowdown >> "$the/$1" 10 save_html() cat >> "$the/$1" 11 12 alias sectionmd:='<<\endsection save_md' 13 14 alias title:="title" 15 title() title="$*" 16 17 alias subtitle:="subtitle" 18 subtitle() subtitle="$*" 19 alias author:="author" 20 author() author="$*" 21 22 alias description:="description" 23 description() description="$*" 24 25 the() { 26 cd $the 27 cat "$@" 28 } 29 30 . layouts/html 31 32 [ "$1" ] || set - 33