new film roll

This commit is contained in:
2024-10-09 10:23:42 +01:00
parent a1189d7f9b
commit 8f15741c78
93 changed files with 488 additions and 0 deletions

28
new-art.sh Executable file
View File

@ -0,0 +1,28 @@
#!/bin/bash
dir=$1
for f in $dir/*; do
d=$(date +"%Y-%m-%d")
span=""
filename=$(basename $f)
noext=${filename%.*}
title=${noext%_*}
title=${title//-/ }
if [ -n "$title" ] && [ "$title" != "x" ]; then
span="<span class='image-details'>$title</span>"
fi
cat > "_art/$d-$noext.md"<< EOF
---
layout: post
title: $filename
date: $d
categories: art
---
![$title](/$f)
$span
EOF
done