From 341fdc48ec92362c0aa8f7fd532752cd94fd9390 Mon Sep 17 00:00:00 2001 From: Dave Cross Date: Tue, 27 Jan 2015 08:09:02 +0000 Subject: [PATCH] Don't build the party pages --- bin/build | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/bin/build b/bin/build index aca1e2e234..0c3376a2bf 100755 --- a/bin/build +++ b/bin/build @@ -30,16 +30,16 @@ $tt->process('constituencies.tt', { constits => [ $sch->resultset('Constituency' 'c/index.html', {binmode => ':utf8'}) or die $tt->error; -foreach my $p ($sch->resultset('Party')->all) { - next unless $p->candidates->count; - $tt->process('party.tt', { p => $p }, 'p/' . $p->slugname . '.html', - {binmode => ':utf8'}) - or die $tt->error; -} - -$tt->process('parties.tt', { parties => [ $sch->resultset('Party')->all ] }, - 'p/index.html', {binmode => ':utf8'}) - or die $tt->error; +#foreach my $p ($sch->resultset('Party')->all) { +# next unless $p->candidates->count; +# $tt->process('party.tt', { p => $p }, 'p/' . $p->slugname . '.html', +# {binmode => ':utf8'}) +# or die $tt->error; +#} +# +#$tt->process('parties.tt', { parties => [ $sch->resultset('Party')->all ] }, +# 'p/index.html', {binmode => ':utf8'}) +# or die $tt->error; for (qw[index about/index]) { $tt->process("$_.tt", { }, "$_.html", { binmode => ':utf8' });