Image

Get the URL to an image in your theme.


Example

{{ theme:img src="hat.jpg" }}
/site/themes/redwood/img/hat.jpg

Add the tag parameter to output a img tag.

{{ theme:img src="hat.jpg" tag="true" }}
<img src="/site/themes/redwood/img/hat.jpg">

Parameters

src

string

The path to the image, relative to the theme/img directory.

cache_bust

boolean false

Setting this to true will add the timestamp of the asset to the end of the URL in a ?v= query param.

absolute

boolean false

Render the URL in an absolute format.

Last modified on November 21, 2018