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", "name": "coryd.dev",
"version": "19.3.8", "version": "19.3.10",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "coryd.dev", "name": "coryd.dev",
"version": "19.3.8", "version": "19.3.10",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cdransf/api-text": "^1.4.0", "@cdransf/api-text": "^1.4.0",

View file

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

View file

@ -10,7 +10,14 @@
<div class="title"> <div class="title">
<a href="{{ item.url }}">{{ item.title }}</a> <a href="{{ item.url }}">{{ item.title }}</a>
</div> </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>
</div> </div>
{% render "partials/media/progress-bar.liquid", percentage:percentage %} {% render "partials/media/progress-bar.liquid", percentage:percentage %}