Le site web bebou.netlib.re - retour accueil
git clone git://bebou.netlib.re/bebou
Log | Files | Refs |
page (513B)
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 alias sectionhtml:='<<\endsection save_html' 14 15 alias title:="title" 16 title() title="$*" 17 18 alias subtitle:="subtitle" 19 subtitle() subtitle="$*" 20 alias author:="author" 21 author() author="$*" 22 23 alias description:="description" 24 description() description="$*" 25 26 the() { 27 cd $the 28 cat "$@" 29 } 30 31 . layouts/html 32 33 [ "$1" ] || set - 34 35 . "$@" 36 37 layout