diff --git a/make.sh b/make.sh index e3a56d6..f39b3c2 100755 --- a/make.sh +++ b/make.sh @@ -1,6 +1,6 @@ #!/bin/bash # compiles new post into target directory -rootDir='./_dank/' +rootDir='./tmp/' mdRoot='./prebild/' mPostDir='./prebuild/post/' @@ -12,9 +12,14 @@ mPostDir='./prebuild/post/' post() { # First get the body of the document - body=$(pandoc $1) - cat 'templates/post-header.html' && echo $body && cat 'templates/post-footer.html' - # inject some page specific things like the title and favicon + tmp=".swap" + base=$(basename $1) + cat 'templates/post-header.html' > $tmp + pandoc $1 >> $tmp + cat 'templates/post-footer.html' >> $tmp + sed -i "3i