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

View file

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

View file

@ -9,11 +9,11 @@ updated: "now"
schema: genre schema: genre
--- ---
{% assign artistCount = genre.artists.size %} {% assign artistCount = genre.artists.size %}
{%- capture connectingWord -%} {%- capture connectingWords -%}
{% if artistCount > 1 %} {% if artistCount > 1 %}
are artists are
{% else %} {% else %}
is artist is
{% endif %} {% endif %}
{%- endcapture -%} {%- endcapture -%}
{%- assign mediaLinks = genre.artists | sortByPlaysDescending: "total_plays" | mediaLinks: "artist", 5 -%} {%- assign mediaLinks = genre.artists | sortByPlaysDescending: "total_plays" | mediaLinks: "artist", 5 -%}
@ -22,7 +22,7 @@ schema: genre
<h2>{{ genre.name }}</h2> <h2>{{ genre.name }}</h2>
<article class="genre-focus"> <article class="genre-focus">
{%- if mediaLinks -%} {%- 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 /> <hr />
{%- endif -%} {%- endif -%}
{% render "partials/blocks/associated-media.liquid", posts:genre.posts %} {% render "partials/blocks/associated-media.liquid", posts:genre.posts %}