image_tag

Description

Build the HTML img tag.

Syntax

{{ <url> | image_tag: <options> }}

Example

{{ 'http://placehold.it/350x150' | image_tag: 'alt:hello world' }}

outputs

<img src="http://placehold.it/350x150" alt="hello world" />

Options

Name Type Description
alt String  
title String  
© 2024 LocomotiveCMS Terms of use Privacy Policy
Back to top