|
|
@ -154,8 +154,7 @@ my %default = ( |
|
|
|
root_dir => 'archives', # root dir for archived files |
|
|
|
url_root => "$0?", # root URL for building links |
|
|
|
image_url_root => '', # same for images |
|
|
|
header => 'header', |
|
|
|
footer => 'footer', |
|
|
|
template => 'template', |
|
|
|
title => '', |
|
|
|
title_prefix => '', |
|
|
|
stylesheet_url => undef, |
|
|
@ -164,6 +163,7 @@ my %default = ( |
|
|
|
author => undef, |
|
|
|
description => undef, |
|
|
|
license => undef, |
|
|
|
content => undef, |
|
|
|
http_header => 1, |
|
|
|
default_entry => 'new', |
|
|
|
|
|
|
@ -295,16 +295,14 @@ sub display { |
|
|
|
return $self->feed_print() if $option eq $self->feed_alias; |
|
|
|
$output .= $self->handle($option); |
|
|
|
} |
|
|
|
$self->content($output); |
|
|
|
|
|
|
|
# Wrap entries in header/footer: |
|
|
|
my $header; |
|
|
|
$header .= "Content-Type: text/html\n\n" if $self->http_header; |
|
|
|
$header .= $self->fragment_slurp($self->header); |
|
|
|
# Wrap entries in template |
|
|
|
my $rendered_page; |
|
|
|
$rendered_page .= "Content-Type: text/html\n\n" if $self->http_header; |
|
|
|
$rendered_page .= $self->fragment_slurp($self->template); |
|
|
|
|
|
|
|
return $header |
|
|
|
. $output |
|
|
|
. $self->fragment_slurp($self->footer); |
|
|
|
|
|
|
|
return $rendered_page; |
|
|
|
} |
|
|
|
|
|
|
|
=item handle($entry) |
|
|
@ -419,7 +417,6 @@ sub recent_month { |
|
|
|
|
|
|
|
return "$year_files[0]/$month_files[0]"; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|