Skip to content

Commit 4951574

Browse files
committed
Add placeholder image for Pages::Card
1 parent 321749c commit 4951574

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/components/pages/card.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def view_template
1414
article(class: "") do
1515
a(href: request_path, class: "block") do
1616
figure(class: "page-card--image w-full") do
17-
image_tag @image,
17+
image_tag @image || "https://placehold.co/640x360?text=#{title}",
1818
alt: description,
1919
class: "w-full rounded-2xl object-cover aspect-[16/9]"
2020
end

0 commit comments

Comments
 (0)