comparison build.sh @ 27:b9aeab8d9362

Sort by date in index.html
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Tue, 18 Feb 2014 16:37:17 +0900
parents 3fb1e07004fa
children
comparison
equal deleted inserted replaced
26:2a22a785d778 27:b9aeab8d9362
62 title=`head -5 $slide | grep "title[ ]*:" | sed -e 's/^title[ ]*:[ ]*//'` 62 title=`head -5 $slide | grep "title[ ]*:" | sed -e 's/^title[ ]*:[ ]*//'`
63 date=`basename $(dirname $slide)` 63 date=`basename $(dirname $slide)`
64 echo "* ${date} : [$title]($(slide_name_from_full_path $slide))" >> ${index_source_name} 64 echo "* ${date} : [$title]($(slide_name_from_full_path $slide))" >> ${index_source_name}
65 done 65 done
66 66
67 kramdown ${index_source_name} --template ${index_template_file} > ${index_file_name} 67 (sort ${index_source_name} | kramdown --template ${index_template_file}) > ${index_file_name}
68 rm ${index_source_name} 68 rm ${index_source_name}
69 } 69 }
70 70
71 71
72 # main 72 # main