RSS feeds will only be generated if publishing is enabled
This commit is contained in:
parent
9cfcf90d6a
commit
079aa79cf8
1
blogalba
1
blogalba
|
@ -127,6 +127,7 @@ sub get_page {
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
sub generate_feed {
|
sub generate_feed {
|
||||||
|
return unless $blog->{config}->{rss_publish};
|
||||||
my $feed = new XML::RSS(version => '2.0');
|
my $feed = new XML::RSS(version => '2.0');
|
||||||
$feed->channel (
|
$feed->channel (
|
||||||
title => $blog->{name},
|
title => $blog->{name},
|
||||||
|
|
Loading…
Reference in New Issue