chore: improve minification
This commit is contained in:
parent
50da2beca1
commit
55326dab7d
8 changed files with 69 additions and 57 deletions
|
@ -11,9 +11,6 @@ schema: artist
|
|||
{%- capture alt -%}
|
||||
{{ artist.name }} / {{ artist.country }}
|
||||
{%- endcapture -%}
|
||||
{%- capture js -%}
|
||||
{% render "../../../../assets/scripts/text-toggle.js" %}
|
||||
{%- endcapture -%}
|
||||
{%- capture playLabel -%}
|
||||
{%- if artist.totalPlays == 1 -%}
|
||||
play
|
||||
|
@ -21,7 +18,6 @@ schema: artist
|
|||
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>
|
||||
<article class="artist-focus">
|
||||
|
|
|
@ -17,10 +17,6 @@ schema: genre
|
|||
{% endif %}
|
||||
{%- endcapture -%}
|
||||
{%- assign mediaLinks = genre.artists | sortByPlaysDescending: "total_plays" | mediaLinks: "artist", 5 -%}
|
||||
{%- capture js -%}
|
||||
{% render "../../../assets/scripts/text-toggle.js" %}
|
||||
{%- 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>
|
||||
<h2>{{ genre.name }}</h2>
|
||||
|
|
Reference in a new issue