Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

For a software dev like me who has no idea how to create a cute hand-drawn dashed line, this course just 100% works.

— Ira Zayats, Developer

Asset Tag

The Asset (singular tense) tag retrieves single assets by their URL.

Overview

The Asset tag's primary purpose is to retrieve Assets by their URL. Pass the URL into the url parameter and voila. To say it did any more than that would be a lie.

Example

{{ asset url="/img/brand/logo.png" }}
<img src="{{ url }}" alt="{{ alt }}">
{{ /asset }}

Parameters

url

string

The path to the file, relative to the web root.

Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →