alexw.nyc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.alexwennerberg.com/alexw.nyc
Log | Files | Refs | README

commit 0ed4c84bd43d7bbf22349e493f41f3ccefb0b58b
parent 560fc3ab4b77c2b401af45cdaa4038bcadcd3a9d
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sun,  9 Apr 2023 18:45:16 -0400

add last updated

Diffstat:
Mbuild.sh | 3++-
Mtemplates/footer.html | 2++
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/build.sh b/build.sh @@ -20,7 +20,8 @@ for file in $(find $srcdir); do if [[ $file == *.html ]]; then cat templates/header.html > $fn cat $file >> $fn - cat templates/footer.html >> $fn + updated=`stat -c %z $file | awk '{print $1}'` + cat templates/footer.html | sed -e "s/{updated}/$updated/" >> $fn else cp $file $fn 2> /dev/null fi diff --git a/templates/footer.html b/templates/footer.html @@ -4,5 +4,7 @@ <a href="/tech/infra.html">live</a> from beautiful Brooklyn, NY <a href="mailto:alex@alexwennerberg.com">email</a> <a href="https://merveilles.town/@aw">mastodon: aw@merveilles.town</a> +<br> +Last updated {updated} </body> </html>