diff options
author | Vincent Douillet <vincent@vdouillet.fr> | 2025-02-21 21:44:50 +0100 |
---|---|---|
committer | Vincent Douillet <vincent@vdouillet.fr> | 2025-02-21 21:44:50 +0100 |
commit | 583739282a5230597722cf04d60edd1c94b6f4ca (patch) | |
tree | 7f0edc4344b98fc92afcc9055e80af51119d34da | |
parent | 55e5a75b20469629f1a958c12dfee823527078a1 (diff) |
rss feed: make img src absolute
-rwxr-xr-x | makesite.pl | 1 |
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/; |