diff --git a/st/st.sh b/st/st.sh index a3f21d3..9035641 100755 --- a/st/st.sh +++ b/st/st.sh @@ -5,18 +5,18 @@ index=$output/index.html title=Texts rm -rf $output/* +touch $index -cp style.css $output/style.css echo '' >> $index echo $title >> $index -echo '
Home

' >> $index +echo '' >> $index for f in $input/*.md do f=${f##*/} title=${f%.md} - sed 's/\[\[\(.*\)\]\]/\[\1\](\1.html)/g' "$input/$f" | pandoc -f $outformat --metadata title="$title" --template template.html --standalone -o "$output/${title}.html" + sed 's/\[\[\(.*\)\]\]/\[\1\](\1.html)/g' "$input/$f" | pandoc -f $outformat --metadata title="$title" --standalone -o "$output/${title}.html" echo "
$title
" >> $index done diff --git a/st/style.css b/st/style.css deleted file mode 100644 index cf65a69..0000000 --- a/st/style.css +++ /dev/null @@ -1,3 +0,0 @@ -body { - font-family: helvetica -} diff --git a/st/template.html b/st/template.html deleted file mode 100644 index cf2e2fb..0000000 --- a/st/template.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - $title$ - - - -
- Home  -
-
-$body$ - -