mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-30 21:37:43 +08:00
examples: add empty placeholder image
This commit is contained in:
committed by
Sam Lantinga
parent
951ca96dc9
commit
a0b8b57afe
@@ -223,7 +223,7 @@ sub handle_category_dir {
|
|||||||
my $examples_list_html = "";
|
my $examples_list_html = "";
|
||||||
foreach my $example (get_examples_for_category($category)) {
|
foreach my $example (get_examples_for_category($category)) {
|
||||||
# !!! FIXME: image
|
# !!! FIXME: image
|
||||||
my $example_image_url = "https://placehold.co/600x400/png";
|
my $example_image_url = "/$project/placeholder.png";
|
||||||
$examples_list_html .= "
|
$examples_list_html .= "
|
||||||
<a href='/$project/$category/$example'>
|
<a href='/$project/$category/$example'>
|
||||||
<div>
|
<div>
|
||||||
@@ -276,6 +276,7 @@ do_mkdir($output_dir);
|
|||||||
build_latest();
|
build_latest();
|
||||||
|
|
||||||
do_copy("$examples_dir/template.css", "$output_dir/examples.css");
|
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");
|
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 .= "<div class='list'>";
|
$homepage_list_html .= "<div class='list'>";
|
||||||
foreach my $example (get_examples_for_category($category)) {
|
foreach my $example (get_examples_for_category($category)) {
|
||||||
# !!! FIXME: image
|
# !!! FIXME: image
|
||||||
my $example_image_url = "https://placehold.co/600x400/png";
|
my $example_image_url = "/$project/placeholder.png";
|
||||||
$homepage_list_html .= "
|
$homepage_list_html .= "
|
||||||
<a href='/$project/$category/$example'>
|
<a href='/$project/$category/$example'>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 123 B |
Reference in New Issue
Block a user