{% if data.size > 0 %}
{% for item in data limit: 10 %} {%- assign percentage = item.plays | calculatePlayPercentage: mostPlayed -%}
{{ forloop.index }}.
{{ item.title }}
{{ item.artist }} • {{ item.plays }} plays
{% render "partials/now/progress-bar.liquid", percentage:percentage %}
{% endfor %}
{% endif %}