~rjpcasalino/bss

c774a7c09d1a5ff74be9057c9c4efa4a5a93bc27 — rjpc 5 months ago 4da98ef
removes site_modified var and adds FIXME
1 files changed, 4 insertions(+), 3 deletions(-)

M bss.pl
M bss.pl => bss.pl +4 -3
@@ 219,13 219,10 @@ sub write_html {
    }
    open my $HTML, ">", $html;

    my $site_modified = strftime '%c', localtime();

    my $vars = {
        title         => $yaml->{title},
        body          => \@body,
        collections   => $config{COLLECTIONS},
        site_modified => $site_modified,
    };

    # select layout (template)


@@ 237,6 234,10 @@ sub write_html {
        },
        $config{TT_DIR}
    );
    # FIXME
    # seems slow; look into speeding up
    # takes 13 ~ seconds on 900MHz Intel
    # look into image compression
    $template->process( $yaml->{layout}, $vars, $HTML )
      or die $template->error();
    say "$yaml->{title} processed." if $opts{verbose};