Skip to content

Commit

Permalink
examples: add empty placeholder image
Browse files Browse the repository at this point in the history
  • Loading branch information
superzazu authored and slouken committed Dec 5, 2024
1 parent 951ca96 commit a0b8b57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build-scripts/build-web-examples.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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 .= "
<a href='/$project/$category/$example'>
<div>
Expand Down Expand Up @@ -276,6 +276,7 @@ sub handle_category_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");

Expand All @@ -295,7 +296,7 @@ sub handle_category_dir {
$homepage_list_html .= "<div class='list'>";
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";
$homepage_list_html .= "
<a href='/$project/$category/$example'>
<div>
Expand Down
Binary file added examples/template-placeholder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a0b8b57

Please sign in to comment.