app.kluk.fr/app/views/charte/_photo.html.erb

11 lines
545 B
Text
Raw Permalink Normal View History

2026-09-29 06:34:43 +02:00
<%# Photo arrondie avec légende facultative. Toujours un alt descriptif, et width/height
pour éviter les sauts de mise en page (format du site : 1200 × 900).
render "charte/photo", src: "croisiere.jpg", alt: "…", width: 1200, height: 900, legende: "…" %>
<%# locals: (src:, alt:, width: nil, height: nil, legende: nil) -%>
<figure class="photo">
<%= image_tag src, alt: alt, width: width, height: height, loading: "lazy", decoding: "async" %>
<% if legende %>
<figcaption><%= legende %></figcaption>
<% end %>
</figure>