X-Git-Url: http://git.rot13.org/?p=sysadmin-cookbook-html;a=blobdiff_plain;f=bin%2Fhtml.pl;h=537ded0cace4b39ccd07bcdaa90bbcb958f3781a;hp=fcaeb3447b8a989013d2343107bb25da836cba26;hb=7cd12d88f74e84a75343307994f105e90ddc0933;hpb=2e42311343086bd64df95273e46cb584b6649453
diff --git a/bin/html.pl b/bin/html.pl
index fcaeb34..537ded0 100755
--- a/bin/html.pl
+++ b/bin/html.pl
@@ -30,10 +30,11 @@ sub file {
my $changes = join("\n",
map {
my $d = $_->{date};
- $d =~ s{\.\d+Z}{};
+ $d =~ s{:\d\d\.\d+Z}{};
$d =~ s{T}{ };
- qq|
$_->{msg} $d|
- } @{ $log->{logentry} }
+ my $r = $_->{revision};
+ qq|$_->{msg} $d|
+ } reverse @{ $log->{logentry} }
);
$path =~ s{^$recepies/*(.*?[^/]+)$}{$1} || next;
@@ -117,7 +118,8 @@ pre.changes {
}
pre.content {
- padding: 1em;
+ padding: 0.5em;
+ margin: 1em;
background: #eee;
}
@@ -125,10 +127,15 @@ li .date {
font-family: monospace;
color: #888;
float: right;
+ margin-right: 1em;
}
+
+ Sysadmin Cookbook by Dobrica Pavlinusic is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Croatia License.
+
+ Source code repository
|
. "$toc_html
"
, join("\n", @html)