From ddc97807e5f4e68fbc9d21e82ff75889d7cc0330 Mon Sep 17 00:00:00 2001 From: Set Hallstrom Date: Wed, 18 Nov 2020 12:02:10 +0100 Subject: [PATCH] remove broken tag and redundant loop --- _layouts/track.html | 132 +++++++++++++++++++------------------------- 1 file changed, 56 insertions(+), 76 deletions(-) diff --git a/_layouts/track.html b/_layouts/track.html index 89b40bc..08d83e8 100644 --- a/_layouts/track.html +++ b/_layouts/track.html @@ -18,103 +18,86 @@ layout: default
🔊 Play!
- - - -

-
-
-

{{ page.common.title }}

-

{% for style in page.common.genre %}{{ style }}{% endfor %} by {{ page.common.artist }}

- {% for post in site.posts %} - {% if post.album == page.albumSlug %} -

From the {{ page.common.year }} {% if onetracker > 1 %}release{% else %}single{% endif %} "{{ page.common.album }}"

- {% endif %} - {% endfor %} - -

{% assign round_seconds = page.format.duration | round %}{% assign minutes = round_seconds | divided_by: 60 %}{% assign leftover_seconds = minutes | times: 60 %}{{ minutes }}:{% assign seconds_without_zero = round_seconds | minus: leftover_seconds %}{% if seconds_without_zero < 10 %}0{% endif %}{{ seconds_without_zero }}

- - - {% include author.html %} - - +
+

{{ page.common.title }}

+

{% for style in page.common.genre %}{{ style }}{% endfor %} by {{ page.common.artist }}

+ {% for post in site.posts %} + {% if post.album == page.albumSlug %} +

From the {{ page.common.year }} {% if onetracker > 1 %}release{% else %}single{% endif %} "{{ page.common.album }}"

+ {% endif %} + {% endfor %} +

{% assign round_seconds = page.format.duration | round %}{% assign minutes = round_seconds | divided_by: 60 %}{% assign leftover_seconds = minutes | times: 60 %}{{ minutes }}:{% assign seconds_without_zero = round_seconds | minus: leftover_seconds %}{% if seconds_without_zero < 10 %}0{% endif %}{{ seconds_without_zero }}

-

Play!

+ {% include author.html %} +

Play!

+ - - - {% if page.all.UNSYNCEDLYRICS and page.all.USLT %} -
+ {% if page.all.UNSYNCEDLYRICS and page.all.USLT %} +
+

+ {{ page.all.USLT.text | newline_to_br }} +

+
+ {% elsif page.all.USLT and page.all.UNSYNCEDLYRICS == nil %} +
+

+ {{ page.all.USLT.text | newline_to_br }} +

+
+ {% elsif page.all.UNSYNCEDLYRICS and page.all.USLT == nil %} +
+

+ {{ page.all.UNSYNCEDLYRICS | newline_to_br }} +

+
+ {% elsif page.all.lyrics %} +
+

+ {{ page.all.lyrics | newline_to_br }} +

+
+ {% endif %} +

- {{ page.all.USLT.text | newline_to_br }} + {{ page.all.Comment }}

-
- {% elsif page.all.USLT and page.all.UNSYNCEDLYRICS == nil %} -
-

- {{ page.all.USLT.text | newline_to_br }} -

-
- {% elsif page.all.UNSYNCEDLYRICS and page.all.USLT == nil %} -
-

- {{ page.all.UNSYNCEDLYRICS | newline_to_br }} -

-
- {% elsif page.all.lyrics %} -
-

- {{ page.all.lyrics | newline_to_br }} -

-
- {% endif %} - -

- {{ page.all.Comment }} -

-
-{% for post in site.posts %} -{% if post.album == page.albumSlug %} +
-{% endif %} -{% endfor %} - -
+ +
-
+
-

-

{{ page.previousTrack.common.title }}

-

{{ page.previousTrack.common.description }}

+

+

{{ page.previousTrack.common.title }}

+

{{ page.previousTrack.common.description }}

-
-
+
+
-

-

{{ page.nextTrack.common.title }}

-

{{ page.nextTrack.common.description }}

+

+

{{ page.nextTrack.common.title }}

+

{{ page.nextTrack.common.description }}

-
+
-
-{% include footer.html %} - +
+ {% include footer.html %} +
- -
@@ -139,9 +122,6 @@ layout: default

{{ page.common.title }}

- - -