fix: lang

This commit is contained in:
Cory Dransfeldt 2024-09-12 20:34:06 -07:00
parent f244d8ed77
commit 5cc4abcbd7
No known key found for this signature in database
3 changed files with 7 additions and 7 deletions

4
package-lock.json generated
View file

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

View file

@ -1,6 +1,6 @@
{
"name": "coryd.dev",
"version": "24.8.1",
"version": "24.8.2",
"description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module",
"scripts": {

View file

@ -9,11 +9,11 @@ updated: "now"
schema: genre
---
{% assign artistCount = genre.artists.size %}
{%- capture connectingWord -%}
{%- capture connectingWords -%}
{% if artistCount > 1 %}
are
artists are
{% else %}
is
artist is
{% endif %}
{%- endcapture -%}
{%- assign mediaLinks = genre.artists | sortByPlaysDescending: "total_plays" | mediaLinks: "artist", 5 -%}
@ -22,7 +22,7 @@ schema: genre
<h2>{{ genre.name }}</h2>
<article class="genre-focus">
{%- if mediaLinks -%}
<p>My top <strong class="highlight-text">{{ genre.name }}</strong> artists {{ connectingWord }} {{ mediaLinks }}. I've listened to <strong class="highlight-text">{{ genre.total_plays | formatNumber }}</strong> tracks form this genre.</p>
<p>My top <strong class="highlight-text">{{ genre.name }}</strong> {{ connectingWords }} {{ mediaLinks }}. I've listened to <strong class="highlight-text">{{ genre.total_plays | formatNumber }}</strong> tracks form this genre.</p>
<hr />
{%- endif -%}
{% render "partials/blocks/associated-media.liquid", posts:genre.posts %}