fix: label
This commit is contained in:
parent
d16c6ab038
commit
fc62bdf104
4 changed files with 19 additions and 5 deletions
|
@ -14,6 +14,13 @@ schema: artist
|
|||
{%- capture js -%}
|
||||
{% render "../../../../assets/scripts/text-toggle.js" %}
|
||||
{%- endcapture -%}
|
||||
{%- capture playLabel -%}
|
||||
{%- if artist.totalPlays == 1 -%}
|
||||
play
|
||||
{%- else -%}
|
||||
plays
|
||||
{%- endif -%}
|
||||
{%- endcapture -%}
|
||||
<script>{{ js }}</script>
|
||||
<noscript><style>[data-toggle-content].text-toggle-hidden {height: unset !important;overflow: unset !important;margin-bottom: unset !important;}[data-toggle-content].text-toggle-hidden::after {display: none !important;}</style></noscript>
|
||||
<a href="/music" title="Go back to the music index page">{% tablericon "arrow-left" "Go back to the music index page" %} Back to music</a>
|
||||
|
@ -46,7 +53,7 @@ schema: artist
|
|||
<p class="sub-meta tattoo">{% tablericon "needle" "Tattoo" %} I have a tattoo inspired by this artist!</p>
|
||||
{%- endif -%}
|
||||
{%- if artist.totalPlays > 0 -%}
|
||||
<p class="sub-meta"><strong class="highlight-text">{{ artist.totalPlays }} plays</strong></p>
|
||||
<p class="sub-meta"><strong class="highlight-text">{{ artist.totalPlays }} {{ playLabel }}</strong></p>
|
||||
{%- endif -%}
|
||||
<p class="sub-meta">
|
||||
<a href="/music/genres/{{ artist.genre | replace: '/', '-' | slugify | downcase }}" title="Learn more about {{ artist.genre | escape }}">
|
||||
|
|
Reference in a new issue