Verified Commit 4f2a1ca4 authored by Luc Didry's avatar Luc Didry

Add thumbnail generator script

parent c68d19a4
......@@ -3,7 +3,7 @@ for i in $(grep -r featured_image content | sed -e 's@.*featured_image \?\(=\|:\
do
filename=$(basename $i)
dir=$(dirname $i)
thumb="static/$dir/thumb_$filename"
convert static/$i -resize 450x $thumb
thumb="$dir/thumb_$filename"
convert static/$i -resize 450x public/$thumb
sed -e "s@$filename@thumb_$filename@" -i public/index.html
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment