Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (13 sloc) 516 Bytes
{% comment %} Create Videos Array {% endcomment %}
{% capture collectionVideos %}{{ collection.metafields["global"]["video-1"] }},{{ collection.metafields["global"]["video-2"] }}{% endcapture %}
{% assign collectionVideos = collectionVideos | split: ',' %}
<div class="collection-videos">
<h3>Collection Videos</h3>
<ul>
{% for video in collectionVideos %}
<video width="320" height="240" controls>
<source src="{{ video }}" type="video/mp4">
</video>
{% endfor %}
</ul>
</div>