Image tag
Opened this issue · 0 comments
slavikdev commented
Example:
<% if amp? %>
<amp-img
src="<%= image_path("articles/#{@name}.jpg") %>"
width="930px"
height="620px"
layout="responsive">
</amp-img>
<% else %>
<%=
image_tag(
"articles/#{@name}.jpg",
alt: title(@name),
class: 'img-responsive',
width: '930px',
height: '620px'
)
%>
<% end %>