summaryrefslogtreecommitdiff
path: root/makesite.pl
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2025-02-21 21:44:50 +0100
committerVincent Douillet <vincent@vdouillet.fr>2025-02-21 21:44:50 +0100
commit583739282a5230597722cf04d60edd1c94b6f4ca (patch)
tree7f0edc4344b98fc92afcc9055e80af51119d34da /makesite.pl
parent55e5a75b20469629f1a958c12dfee823527078a1 (diff)
rss feed: make img src absolute
Diffstat (limited to 'makesite.pl')
-rwxr-xr-xmakesite.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/makesite.pl b/makesite.pl
index 978257f..f85f1c5 100755
--- a/makesite.pl
+++ b/makesite.pl
@@ -115,6 +115,7 @@ for(my $i = $#articleList; $i >= 0; $i--) {
$pubDate = $pubDate->strftime("%a, %d %b %Y %H:%M:%S %z");
# No relative link in RSS feed
$articleList[$i]{description} =~ s/href="\//href="$BASE_URL/g;
+ $articleList[$i]{description} =~ s/src="\//src="$BASE_URL/g;
while(<$inHandle>) {
$_ =~ s/\$title/$articleList[$i]{title}/;
$_ =~ s/\$link/$url/;