fix: play vs plays
This commit is contained in:
parent
8e28d87d88
commit
f1b157be51
3 changed files with 11 additions and 4 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Reference in a new issue