Files
neocities/compile.sh
2025-04-25 22:47:47 +02:00

11 lines
272 B
Bash
Executable File

#!/bin/bash
t='['
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\"},"
done
echo "${t%?}]"