pub / newsplanet

Planet-Style Newsfeed generated with perlanet
git clone https://src.jayvii.de/pub/newsplanet.git
Home | Log | Files | Exports | Refs | README | RSS

commit 718ebf4a13e1b4d92a3984668594e392bc297922
parent 69ba389bab03b110f5dc4a63588e3bcac89aed07
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sun,  2 Jun 2024 14:27:16 +0200

strip images and iframes for faster loading

Diffstat:
Mrun.sh | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/run.sh b/run.sh @@ -1,4 +1,10 @@ #!/usr/bin/env bash +# Generate site perlanet config.yaml + +# Insert Update time sed -e "s/<!--UPDATED-->/$(date +%c)/" -i index.html + +# remove images and iframes from article previews +sed -E -e 's/<img[^>]*>//g' -e 's/<iframe[^>]*>//g' -i index.html