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

15 lines
293 B
Bash
Executable File

#!/bin/bash
t='['
for entry in notes/*
do
echo $entry
filename=$(basename "$entry" .md)
echo $filename
timestamp=`git log --format=%ad --date=format:'%Y-%m-%d' -- $entry`
echo $timestamp
t+="{\"dest\"=\"$filename\",\"time\"=\"$timestamp\"},"
echo $t
done
echo "value=${t%?} ]"