RSS feeds will only be generated if publishing is enabled

This commit is contained in:
Matthew Connelly 2015-04-08 02:34:56 +01:00
parent 9cfcf90d6a
commit 079aa79cf8
1 changed files with 1 additions and 0 deletions

View File

@ -127,6 +127,7 @@ sub get_page {
return undef;
}
sub generate_feed {
return unless $blog->{config}->{rss_publish};
my $feed = new XML::RSS(version => '2.0');
$feed->channel (
title => $blog->{name},