From 9fdfea75426fc24ef33599b9672a78c7884546e7 Mon Sep 17 00:00:00 2001 From: bvanroll Date: Fri, 25 Apr 2025 22:57:45 +0200 Subject: [PATCH] placeholder --- compile.sh | 5 ++++- public/posts/.placeholder | 0 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 public/posts/.placeholder 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