remove broken tag and redundant loop

This commit is contained in:
Set Hallstrom 2020-11-18 12:02:10 +01:00
parent 6846854776
commit ddc97807e5

View file

@ -18,103 +18,86 @@ layout: default
<div class="playbutton hideWhenNoJS"> <div class="playbutton hideWhenNoJS">
<a id="mu_pause" class="button">🔊 Play!</a> <a id="mu_pause" class="button">🔊 Play!</a>
</div> </div>
</p>
</section> </section>
</div> </div>
<!-- Content --> <!-- Content -->
<div id="trackInfo"> <div id="trackInfo">
<section> <section>
<h1 style="margin-top:80px;">{{ page.common.title }}</h1> <h1 style="margin-top:80px;">{{ page.common.title }}</h1>
<p>{% for style in page.common.genre %}{{ style }}{% endfor %} by <strong>{{ page.common.artist }}</strong></p> <p>{% for style in page.common.genre %}{{ style }}{% endfor %} by <strong>{{ page.common.artist }}</strong></p>
{% for post in site.posts %} {% for post in site.posts %}
{% if post.album == page.albumSlug %} {% if post.album == page.albumSlug %}
<p>From the {{ page.common.year }} {% if onetracker > 1 %}release{% else %}single{% endif %} <a href="{{ relBase }}{{ post.url }}">&quot;{{ page.common.album }}&quot;</a></p> <p>From the {{ page.common.year }} {% if onetracker > 1 %}release{% else %}single{% endif %} <a href="{{ relBase }}{{ post.url }}">&quot;{{ page.common.album }}&quot;</a></p>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<p><strong>{% 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 }}</strong></p>
{% include author.html %}
<p><strong>{% 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 }}</strong></p>
<p class="noJSalbum"><a class="button" target="_blank" rel="noopener" href="{{ site.mediaurl }}/{{ page.albumSlug }}/{{ page.trackSlug }}.mp3"><span class="fas fa-play"></span> Play!</a></p> {% include author.html %}
<p class="noJSalbum"><a class="button" target="_blank" rel="noopener" href="{{ site.mediaurl }}/{{ page.albumSlug }}/{{ page.trackSlug }}.mp3"><span class="fas fa-play"></span> Play!</a></p>
<!-- Content -->
<!-- Content --> {% if page.all.UNSYNCEDLYRICS and page.all.USLT %}
<div class="info">
{% if page.all.UNSYNCEDLYRICS and page.all.USLT %} <p>
<div class="info"> {{ page.all.USLT.text | newline_to_br }}
</p>
</div>
{% elsif page.all.USLT and page.all.UNSYNCEDLYRICS == nil %}
<div class="info">
<p>
{{ page.all.USLT.text | newline_to_br }}
</p>
</div>
{% elsif page.all.UNSYNCEDLYRICS and page.all.USLT == nil %}
<div class="info">
<p>
{{ page.all.UNSYNCEDLYRICS | newline_to_br }}
</p>
</div>
{% elsif page.all.lyrics %}
<div class="info">
<p>
{{ page.all.lyrics | newline_to_br }}
</p>
</div>
{% endif %}
<p> <p>
{{ page.all.USLT.text | newline_to_br }} {{ page.all.Comment }}
</p> </p>
</div>
{% elsif page.all.USLT and page.all.UNSYNCEDLYRICS == nil %}
<div class="info">
<p>
{{ page.all.USLT.text | newline_to_br }}
</p>
</div>
{% elsif page.all.UNSYNCEDLYRICS and page.all.USLT == nil %}
<div class="info">
<p>
{{ page.all.UNSYNCEDLYRICS | newline_to_br }}
</p>
</div>
{% elsif page.all.lyrics %}
<div class="info">
<p>
{{ page.all.lyrics | newline_to_br }}
</p>
</div>
{% endif %}
<p>
{{ page.all.Comment }}
</p>
</section> </section>
{% for post in site.posts %}
{% if post.album == page.albumSlug %}
{% endif %} <!-- post Naviation -->
{% endfor %} <section class="post-navigation">
<!-- post Naviation -->
<section class="post-navigation">
<div class="post-nav"> <div class="post-nav">
<h4><a href="{{ relBase }}/tracks/{{ page.previousTrack.slug }}/" alt="Read {{ page.previousTrack.common.title }}" title="Read {{ page.previousTrack.common.title }}"><span <h4><a href="{{ relBase }}/tracks/{{ page.previousTrack.slug }}/" alt="Read {{ page.previousTrack.common.title }}" title="Read {{ page.previousTrack.common.title }}"><span
class="fas fa-arrow-left" style="font-size:3em;text-decoration: none;"></span></a></h4> class="fas fa-arrow-left" style="font-size:3em;text-decoration: none;"></span></a></h4>
<h3>{{ page.previousTrack.common.title }}</h3> <h3>{{ page.previousTrack.common.title }}</h3>
<p>{{ page.previousTrack.common.description }}</p> <p>{{ page.previousTrack.common.description }}</p>
</div> </div>
<div class="post-nav-next"> <div class="post-nav-next">
<h4><a href="{{ relBase }}/tracks/{{ page.nextTrack.slug }}/" alt="Read {{ page.nextTrack.common.title }}" title="Read {{ page.nextTrack.common.title }}"><span class="fas fa-arrow-right" style="font-size:3em;"></span></a></h4> <h4><a href="{{ relBase }}/tracks/{{ page.nextTrack.slug }}/" alt="Read {{ page.nextTrack.common.title }}" title="Read {{ page.nextTrack.common.title }}"><span class="fas fa-arrow-right" style="font-size:3em;"></span></a></h4>
<h3>{{ page.nextTrack.common.title }}</h3> <h3>{{ page.nextTrack.common.title }}</h3>
<p>{{ page.nextTrack.common.description }}</p> <p>{{ page.nextTrack.common.description }}</p>
</div> </div>
</section> </section>
{% include footer.html %} {% include footer.html %}
<!-- End Post Navigation --> <!-- End Post Navigation -->
</div> </div>
<!-- Audio player--> <!-- Audio player-->
<div id="fixedPlayer" class="showplayer hideplayer"> <div id="fixedPlayer" class="showplayer hideplayer">
<div id="audiowrap"> <div id="audiowrap">
@ -139,9 +122,6 @@ layout: default
</div> </div>
<p id="npTitle" style="font-weight: bold;">{{ page.common.title }} </p> <p id="npTitle" style="font-weight: bold;">{{ page.common.title }} </p>
</div> </div>
</div> </div>