We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 321749c commit 4951574Copy full SHA for 4951574
app/views/components/pages/card.rb
@@ -14,7 +14,7 @@ def view_template
14
article(class: "") do
15
a(href: request_path, class: "block") do
16
figure(class: "page-card--image w-full") do
17
- image_tag @image,
+ image_tag @image || "https://placehold.co/640x360?text=#{title}",
18
alt: description,
19
class: "w-full rounded-2xl object-cover aspect-[16/9]"
20
end
0 commit comments