asset_url - Liquid Filter Reference
On this page
Description
Returns the url of an asset in the theme
| Property | Value |
|---|---|
| Return Type | string |
| Category | theme |
Examples
liquid
{{ "images/hedgehog.jpg" | asset_url }}
Output: https://example.com/hedgehog.jpg
liquid
{{ "images/unknown" | asset_url }}
Output: unknown asset: images/unknown