From a0b8b57afeb2f5049024096fe281392de0effca2 Mon Sep 17 00:00:00 2001 From: Nicolas Allemand Date: Thu, 5 Dec 2024 08:52:14 +0100 Subject: [PATCH] examples: add empty placeholder image --- build-scripts/build-web-examples.pl | 5 +++-- examples/template-placeholder.png | Bin 0 -> 123 bytes 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 examples/template-placeholder.png diff --git a/build-scripts/build-web-examples.pl b/build-scripts/build-web-examples.pl index 38b4186418..4b9b5fed6f 100755 --- a/build-scripts/build-web-examples.pl +++ b/build-scripts/build-web-examples.pl @@ -223,7 +223,7 @@ sub handle_category_dir { my $examples_list_html = ""; foreach my $example (get_examples_for_category($category)) { # !!! FIXME: image - my $example_image_url = "https://placehold.co/600x400/png"; + my $example_image_url = "/$project/placeholder.png"; $examples_list_html .= "
@@ -276,6 +276,7 @@ do_mkdir($output_dir); build_latest(); do_copy("$examples_dir/template.css", "$output_dir/examples.css"); +do_copy("$examples_dir/template-placeholder.png", "$output_dir/placeholder.png"); opendir(my $dh, $examples_dir) or die("Couldn't opendir '$examples_dir': $!\n"); @@ -295,7 +296,7 @@ foreach my $category (get_categories()) { $homepage_list_html .= "