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 + +