From 60eb1064c83b80f841db83d218a4bbde5b2f771e Mon Sep 17 00:00:00 2001 From: max Date: Tue, 11 Aug 2026 17:06:51 +0100 Subject: [PATCH] much better --- generate.php | 62 ++++++++++++++++++++++++++++++++++++++++++--------- template.html | 7 ++++++ 2 files changed, 58 insertions(+), 11 deletions(-) diff --git a/generate.php b/generate.php index 6f1b208..6d5b619 100644 --- a/generate.php +++ b/generate.php @@ -1,24 +1,63 @@ @@ -28,7 +67,8 @@ foreach (scandir('./images') as $inode) { ', 'todo: full-size image or photo page', - 'todo: thumbnail filename', + $thumbnail_path, + $alt_text ?: '' ); } @@ -36,6 +76,6 @@ file_put_contents( 'index.html', sprintf( file_get_contents('template.html'), - 'Whee' + implode('', $photos) ) ); diff --git a/template.html b/template.html index 7232d5a..8b8c0e5 100644 --- a/template.html +++ b/template.html @@ -3,6 +3,13 @@ Photos + +