9863c970ce1e3e210c12d5541602dd49434f0dcd
commit 9863c970ce1e3e210c12d5541602dd49434f0dcd
Author: spesk1 <spesk@pm.me>
Date: Fri Apr 17 20:43:58 2020 -0400

Add site generation date to index

diff --git a/lib/Gsg/Html.pm b/lib/Gsg/Html.pm
index dbe1feb..95a12c8 100644
--- a/lib/Gsg/Html.pm
+++ b/lib/Gsg/Html.pm
@@ -40,7 +40,11 @@ sub write_root_index($$$$) {
my $logger = shift;
write_file("", $index);
append_file("<html><body><b>Git Projects</b><br><head><META NAME=\"ROBOTS\" CONTENT=\"NOINDEX, NOFOLLOW\"></head>\n",$index);
- append_file("<small><i>Statically generated web root for browsing this git server</i></small><br><hr/>\n",$index);
+ append_file("<small><i>Statically generated web root for browsing this git server</i></small><br>\n",$index);
+ my $date_cmd = findBin("date",$logger);
+ my $current_time = `$dateCmd`;
+ chomp $current_time;
+ append_file("<small><i>Generated at $current_time</i></small><br><hr/>\n",$index);

my $mkdirCmd = findBin("mkdir",$logger);
foreach my $project ( @$project_dirs_ref ) {