Skip to content

Commit

Permalink
allowing for multiple assets
Browse files Browse the repository at this point in the history
  • Loading branch information
markhuot committed Nov 18, 2023
1 parent 1a1f5c0 commit 3393d8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/templates/components/asset.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@
}))),
} %}
{% export summary = props.asset.one().title|default %}
<img {{ attributes}} src="{{props.asset.one().getUrl(props.transform.value|default(null))|default }}">
{% for asset in props.asset %}
<img {{ attributes}} src="{{asset.getUrl(props.transform.value|default(null))|default }}">
{% endfor %}

0 comments on commit 3393d8e

Please sign in to comment.