fix: label

This commit is contained in:
Cory Dransfeldt 2024-08-28 15:01:05 -07:00
parent d16c6ab038
commit fc62bdf104
No known key found for this signature in database
4 changed files with 19 additions and 5 deletions

View file

@ -7,7 +7,14 @@
</p>
<ul>
{% for artist in artists %}
<li><a href="{{ artist.url }}">{{ artist.name }}</a>{%- if artist.total_plays > 0 -%}: <strong class="highlight-text">{{ artist.total_plays }} plays</strong>{%- endif -%}</li>
{%- capture playLabel -%}
{%- if artist.total_plays == 1 -%}
play
{%- else -%}
plays
{%- endif -%}
{%- endcapture -%}
<li><a href="{{ artist.url }}">{{ artist.name }}</a>{%- if artist.total_plays > 0 -%}: <strong class="highlight-text">{{ artist.total_plays }} {{ playLabel }}</strong>{%- endif -%}</li>
{% endfor %}
</ul>
<hr />