X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/9e77d528b81a90babfcc565609030fa01712b4a1..3f38a7192491a73a1527179cdd68218f023aed61:/sc.plp
diff --git a/sc.plp b/sc.plp
index b3c27fc..255d28f 100644
--- a/sc.plp
+++ b/sc.plp
@@ -29,16 +29,16 @@ my $requestver = $scvers{$Request ||= 'index'}
or Html(), Abort("Requested version $Request not available", '404 request not found');
if (ref $requestver ne 'HASH') {
- $header{Location} = $requestver;
+ $header{Location} = "/sc/$requestver";
Abort("Canonical URL for $Request is at $requestver", '302 subpage alias');
}
my %scver = %{$requestver};
-my $datafile = "sc-units-$Request.inc.pl";
+my $datafile = "sc-units-$Request";
Html({
title => "$scver{title} unit cheat sheet",
- version => '1.2',
+ version => '1.4',
description => [
"Reference of $scver{game} unit properties,"
. " comparing various statistics of all the units in $scver{name}"
@@ -52,15 +52,13 @@ Html({
$scver{major} < 2 ? qw' bw broodwar brood war ' :
qw' starcraft2 lotv hots wol ',
],
- stylesheet => [qw( light dark )],
- raw => '',
- data => [$datafile],
+ raw => '',
+ data => ["$datafile.inc.pl"],
});
say "