repos/kloeckner.com.ar

Backup of part of my webpage
Commits Files Refs README LICENSE
commit 4217d2555bbfe3bc737241f2b3e615faf1eb664d
parent 1287c88af48059edaba05afaf956122c2c54052d
Author: Martin Kloeckner <mjkloeckner@gmail.com>
Date:   Tue, 19 Nov 2024 13:36:11 -0300

usa last git commit as last-update date

Diffstat:
Mscripts/build_page.sh | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/build_page.sh b/scripts/build_page.sh
@@ -63,7 +63,8 @@ lang="en"
 generator="Shell script"
 template="$templ"
 filename="$(basename $input | sed 's/\.[^.]*$//')"
-last_update="$(date -r $input '+%d-%b-%Y')"
+# last_update="$(date -r $input '+%d-%b-%Y')"
+last_update="$( git --no-pager log -n 1 --pretty=format:%cd $input)"
 
 mkdir -p $dest_dir &> /dev/null