preview shouldn't show the feed buttons or post form

master
Joey Hess 2008-02-04 18:44:54 -05:00
parent bf522a347f
commit b37dc9c926
1 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ sub preprocess_inline (@) { #{{{
my $atomurl=basename(atompage($params{destpage}).$feednum) if $feeds && $atom;
my $ret="";
if ($config{cgiurl} && (exists $params{rootpage} ||
if ($config{cgiurl} && ! $params{preview} && (exists $params{rootpage} ||
(exists $params{postform} && yesno($params{postform})))) {
# Add a blog post form, with feed buttons.
my $formtemplate=template("blogpost.tmpl", blind_cache => 1);
@ -202,7 +202,7 @@ sub preprocess_inline (@) { #{{{
}
$ret.=$formtemplate->output;
}
elsif ($feeds) {
elsif ($feeds && !$params{preview}) {
# Add feed buttons.
my $linktemplate=template("feedlink.tmpl", blind_cache => 1);
$linktemplate->param(rssurl => $rssurl) if $rss;