diff --git a/compile.sh b/compile.sh index a5de018..2158c25 100755 --- a/compile.sh +++ b/compile.sh @@ -4,7 +4,10 @@ for entry in notes/* do filename=$(basename "$entry" .md) timestamp=`git log --format=%ad --date=format:'%Y-%m-%d' -- $entry` - t+="{\"source\":\"$entry\",\"dest\":\"public/posts/$filename_$timestamp\",\"time\":\"$timestamp\"}," + dest="public/posts/$timestamp" + dest+="_$filename" + dest+=".html" + t+="{\"source\":\"$entry\",\"dest\":\"$dest\",\"time\":\"$timestamp\"}," done echo "${t%?}]" diff --git a/public/posts/.placeholder b/public/posts/.placeholder new file mode 100644 index 0000000..e69de29