- _render('skel', $lang, %args, meat => $meat)
+ my $html = _render('skel', $lang, %args, meat => $meat);
+ if ($tmpl eq 'pb_entry') { # Move sidebar to correct position
+ my $builder = HTML::TreeBuilder->new;
+ $builder->ignore_unknown(0);
+ my $tree = $builder->parse_content($html);
+ $tree->fid('content')->postinsert($tree->fid('sidebar'));
+ $html = $tree->as_HTML(undef, undef, $optional_end_tags)
+ }
+ $html