Don't generate inlined page content if the template does not use it.
my $file = $pagesources{$page};
my $type = pagetype($file);
if (! $raw || ($raw && ! defined $type)) {
- unless ($archive && $quick) {
+ if (!($archive && $quick) &&
+ $template->query(name => 'content')) {
# Get the content before populating the
# template, since getting the content uses
# the same template if inlines are nested.
* calendar: Fix CSS for year calendar to match the plugin documentation.
* Added minimal default CSS for calendar plugin, just highlighting the
current day.
+ * inline: Optimize generation of archives, etc by not getting inlined page
+ content if the template does not use it.
-- Joey Hess <joeyh@debian.org> Fri, 09 Oct 2009 19:53:50 -0400