fix: lang
This commit is contained in:
parent
f244d8ed77
commit
5cc4abcbd7
3 changed files with 7 additions and 7 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Reference in a new issue