/
img_tag

img_tag

Returns an HTML image tag. You can pass a string or a series of key:value arguments to set HTML attributes.

Input:

{{ "path-to-image.jpg" | img_tag }} {{ "path-to-image.jpg" | img_tag: class: "image-class", alt: "image-alt" }}

Output:

<img src="path-to-image.jpg"> <img src="path-to-image.jpg" class="image-class" alt="image-alt">

Related content

img_url
img_url
More like this
where
Read with this
attachment
attachment
More like this
html_input
html_input
More like this
to_json
to_json
More like this
global_asset_url
global_asset_url
More like this