fixing track pages

This commit is contained in:
sakrecoer 2020-07-05 13:14:39 +02:00
parent 8e092fba9f
commit 769e27ce37
2 changed files with 12 additions and 18 deletions

View file

@ -45,8 +45,14 @@
</section> </section>
{% else %} {% else %}
<section class="streambox" style="margin-top:40px;"> <section class="streambox" style="margin-top:40px;">
{% if page.collection == 'albums' %}
<h3 style="text-align: center;display: block;">This release&nbsp; can't be bought</h3>
<p>But other releases are available here:</p>
{% else %}
<h3 style="text-align: center;display: block;">This track can't be bought</h3> <h3 style="text-align: center;display: block;">This track can't be bought</h3>
<p>But other tracks are available here:</p> <p>But other tracks are available here:</p>
{% endif %}
<div class="streamer"> <div class="streamer">
{% for shop in site.data.stores %} {% for shop in site.data.stores %}
{% if shop.download == true %} {% if shop.download == true %}
@ -54,18 +60,6 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
<!--
<h3 style="text-align: center;display: block;margin-top:40px;">Stream</h3>
<div class="streamer">
{% for shop in site.data.stores %}
{% if shop.download != true %}
<a onclick="_paq.push(['trackEvent', 'StoreLink', '{{ shop.name | remove: " " }}']);" style="flex: 0 0 75px;margin:10px; font-size: 75px;" target="_blank" rel="noopener" href="{{ shop.url }}" alt="Stream from {{ shop.name }}" title="Stream from {{ shop.name }}" class="icon style2 brands {{ shop.icon }}"><span class="label">{{ shop.name }}</span></a>
{% endif %}
{% endfor %}
</div>
-->
</section> </section>
{% endif %} {% endif %}
{% endif %} {% endif %}

View file

@ -30,7 +30,7 @@ layout: default
</div> </div>
<div class="image"> <div class="image">
<img src="{{ relBase }}{{ page.cover }}" alt="{{ page.title }} logo" id="coverart" /> <img src="https://media.basspistol.com/panix/{{ page.slug }}.jpeg" alt="{{ page.title }} logo" id="coverart" />
</div> </div>
</section> </section>
{% if page.all.UNSYNCEDLYRICS != nil %} {% if page.all.UNSYNCEDLYRICS != nil %}
@ -72,15 +72,15 @@ layout: default
<div class="post-nav"> <div class="post-nav">
<div> <div>
{% if page.previous.url and page.lang == page.previous.lang %} {% if page.previous.url and page.lang == page.previous.lang %}
<h4><a href="{{ relBase }}/{{ page.previousTrack.slug }}/" alt="Read {{ page.previousTrack.common.title }}" title="Read {{ page.previousTrack.common.title }}"><i class="fas fa-arrow-left"></i></a> <a <h4><a href="{{ relBase }}/albums/{{ page.previousTrack.slug }}/" alt="Read {{ page.previousTrack.common.title }}" title="Read {{ page.previousTrack.common.title }}"><i class="fas fa-arrow-left"></i></a> <a
href="{{ relBase }}/{{ page.previousTrack.slug }}/">&nbsp;{{ page.previousTrack.common.title }}</a> href="{{ relBase }}/albums/{{ page.previousTrack.slug }}/">&nbsp;{{ page.previousTrack.common.title }}</a>
</h4> </h4>
{% endif %} {% endif %}
</div> </div>
<div class="post-nav-next"> <div class="post-nav-next">
{% if page.next.url and page.lang == page.next.lang %} {% if page.next.url and page.lang == page.next.lang %}
<h4><a href="{{ relBase }}/{{ page.nextTrack.slug }}/">&nbsp;{{ page.nextTrack.common.title }}</a> <a <h4><a href="{{ relBase }}/albums/{{ page.nextTrack.slug }}/">&nbsp;{{ page.nextTrack.common.title }}</a> <a
href="{{ relBase }}/{{ page.nextTrack.slug }}/" alt="Read {{ page.nextTrack.common.title }}" title="Read {{ page.nextTrack.common.title }}"><i class="fas fa-arrow-right"></i></a></h4> href="{{ relBase }}/albums/{{ page.nextTrack.slug }}/" alt="Read {{ page.nextTrack.common.title }}" title="Read {{ page.nextTrack.common.title }}"><i class="fas fa-arrow-right"></i></a></h4>
{% endif %} {% endif %}
</div> </div>
</div> </div>
@ -92,7 +92,7 @@ layout: default
</section> </section>
<!-- Audio player--> <!-- Audio player-->
<audio autoplay preload="true" data-matomo-title="{{ page.common.title }}"> <audio autoplay preload="true" data-matomo-title="{{ page.common.title }}">
<source src="{{ relBase }}{{ page.audio }}" type="audio/mpeg" ontimeupdate='updateTrackTime(this);' /> <source src="https://media.basspistol.com/panix/{{ page.slug }}.mp3" type="audio/mpeg" ontimeupdate='updateTrackTime(this);' />
<h1>Your browser isn't ready for so much hotness. Use the download-link instead.</h1>. <h1>Your browser isn't ready for so much hotness. Use the download-link instead.</h1>.
</audio> </audio>
{% include footer.html %} {% include footer.html %}