11 lines
545 B
Text
11 lines
545 B
Text
|
|
<%# 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>
|