feat: download and relink existing recipe images to roux.roo.lol

This commit is contained in:
2026-05-21 14:46:04 -04:00
parent 36d4fc205e
commit 94775414bd
40 changed files with 35 additions and 19 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
while IFS='|' read -r file slug; do
url=$(grep "^image:" "$file" | sed 's/^image:[[:space:]]*//')
echo "[$slug] Downloading from $url"
curl -sL -o "recipe-images/$slug.webp" "$url" || echo "[$slug] DOWNLOAD FAILED"
done
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
while IFS='|' read -r file slug; do
new_url="https://roux.roo.lol/recipe-images/$slug.webp"
sed -i "s|^image:.*|image: $new_url|" "$file"
echo "[$slug] Updated image field"
done