fix: play vs plays

This commit is contained in:
Cory Dransfeldt 2024-06-14 11:56:11 -07:00
parent 8e28d87d88
commit f1b157be51
No known key found for this signature in database
3 changed files with 11 additions and 4 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "coryd.dev",
"version": "19.3.8",
"version": "19.3.10",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "coryd.dev",
"version": "19.3.8",
"version": "19.3.10",
"license": "MIT",
"dependencies": {
"@cdransf/api-text": "^1.4.0",

View file

@ -1,6 +1,6 @@
{
"name": "coryd.dev",
"version": "19.3.9",
"version": "19.3.10",
"description": "The source for my personal site. Built using 11ty.",
"type": "module",
"scripts": {

View file

@ -10,7 +10,14 @@
<div class="title">
<a href="{{ item.url }}">{{ item.title }}</a>
</div>
<div class="subtext">{{ item.artist }}: {{ item.plays }} plays</div>
{% capture playsLabel %}
{% if item.plays > 1 %}
plays
{% else %}
play
{% endif %}
{% endcapture %}
<div class="subtext">{{ item.artist }} / {{ item.plays }} {{ playsLabel }}</div>
</div>
</div>
{% render "partials/media/progress-bar.liquid", percentage:percentage %}