alexkarle.com

Source for alexkarle.com
git clone git://git.alexkarle.com/alexkarle.com.git
Log | Files | Refs | README | LICENSE

commit 3ebd7735f366cf0fff575e74194ddbe49eb64b88 (patch)
parent b6656bea1672ff6c999aefca8e2faa3488b40bf2
Author: Alex Karle <alex@alexkarle.com>
Date:   Sun, 23 Jul 2023 23:21:44 -0400

genpage: Add Last Updated to non-blog pages

Diffstat:
Mbin/genpage | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/bin/genpage b/bin/genpage @@ -32,6 +32,17 @@ EOM nihdoc < "$1" +if echo "$1" | grep -q -v "blog/"; then + cat <<EOM +<footer> +<br> +<em>Last Updated: $(git log --pretty="%cs" -n 1 -- "$1")</em> +</footer> +</body> +</html> +EOM +fi + cat <<EOM </body> </html>