diff --git a/bin/build b/bin/build index 33bd20c719..9f11c8a723 100755 --- a/bin/build +++ b/bin/build @@ -24,7 +24,11 @@ my $tt = Template->new({ foreach my $c ($sch->resultset('Constituency')->all) { next unless $c->candidates->count; - $tt->process('page.tt', { c => $c }, $c->list_name . '.html', + $tt->process('constituency.tt', { c => $c }, $c->list_name . '.html', {binmode => ':utf8'}) or die $tt->error; } + +$tt->process('constituencies.tt', { constits => [ $sch->resultset('Constituency')->all ] }, + 'index.html', {binmode => ':utf8'}) + or die $tt->error; diff --git a/c/aberavon.html b/c/aberavon.html index 1f3edc0674..dad6f7efff 100644 --- a/c/aberavon.html +++ b/c/aberavon.html @@ -68,6 +68,8 @@

Aberavon

+ + + + + + + + + + + + + + + + + + + + + + - -
-
-

[% c.name %]

-
-
- - -
-
-
    -[% FOREACH cand IN c.candidates -%] -
  • [% cand.name %] ([% cand.party.name %])[% IF cand.twitter %]
    @[% cand.twitter %][% END %]
  • -[% END -%] -
-
-
-
-
+[% content %] +