1 #!/bin/sh 2 3 # Builds a page for all the folders contained in md. 4 # Copies entire folder to blog folder, generates an html file 5 # converting the markdown file *named the same as the subfolder* 6 7 root_folder="$1" 8 9 for i in $(ls $root_folder/blog); do 10 # cp -ur "$root_folder"/md/$i "$root_folder"/blog/ >/dev/null 2>&1 11 "$root_folder"/scripts/build_page.sh \ 12 -i "$root_folder"/blog/$i/$i.md \ 13 -t "$root_folder"/scripts/template.html \ 14 -d "$root_folder"/blog/$i; 15 done