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",
|
"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",
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
Reference in a new issue