cracking the fucking streamer nut

This commit is contained in:
Set Hallstrom 2020-07-10 16:54:16 +02:00
parent 34f8fa6ef4
commit 9ae6dd13a0

View file

@ -1,7 +1,7 @@
<section class="streambox" style="padding: 40px;"> <section class="streambox" style="padding: 40px;">
{% if page.collection == 'posts' %} {% if page.collection == 'posts' %}
{% if page.category == 'releases' %} {% if page.category == 'releases' %}
{% if page.stores[0].name != nil %} {% if page.stores[0].name != '' %}
<h3 style="text-align: center;display: block;">Buy this release</h3> <h3 style="text-align: center;display: block;">Buy this release</h3>
<div class="streamer"> <div class="streamer">
@ -46,13 +46,14 @@
{% endif %} {% endif %}
{% endif %} {% endif %}
{% elsif page.collection == 'tracks' %} {% elsif page.collection == 'tracks' %}
{% for post in site.posts %} {% for post in site.posts %}
{% if post.album == page.albumSlug %} {% if post.album == page.albumSlug %}
{% if post.stores[0].name != nil %} {% if post.stores[0].name != '' %}
<h3 style="text-align: center;display: block;">Buy this Track</h3> <h3 style="text-align: center;display: block;">Buy this track</h3>
<div class="streamer"> <div class="streamer">
{% for shop in post.stores %} {% for shop in post.stores %}
{% if shop.download == true %} {% if shop.download == true %}
@ -60,10 +61,10 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
<h3 style="text-align: center;display: block;margin-top:40px;">&nbsp;</h3> <h3 style="text-align: center;display: block;margin-top:40px;">&nbsp;</h3>
<div class="streamer"> <div class="streamer">
{% for shop in post.stores %} {% for shop in post.stores %}
{% if shop.download != true %} {% if shop.download != true %}
@ -71,12 +72,8 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
{% endif %}
{% else %} {% 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 you can find others here:</p> <p>But you can find others here:</p>
<div class="streamer"> <div class="streamer">
@ -87,7 +84,7 @@
{% endfor %} {% endfor %}
</div> </div>
<h3 style="text-align: center;display: block;">&nbsp;</h3> <h3 style="text-align: center;display: block;">&nbsp;</h3>
<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 %}
@ -95,14 +92,38 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
{% endif %}{% break %} {% break %}
{% endif %}
{% endif %}
{% endfor %} {% endfor %}
{% elsif page.collection == 'albums' %} {% elsif page.collection == 'albums' %}
{% for post in site.posts %}
{% if post.album == page.slug %} {% for post in site.posts %}
{% if post.stores[0].name != nil %} {% if post.album == page.slug %}
{% if post.stores[0].name != '' %}
<h3 style="text-align: center;display: block;">Buy this album</h3> <h3 style="text-align: center;display: block;">Buy this album</h3>
<div class="streamer"> <div class="streamer">
@ -123,11 +144,7 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
{% else %}
{% endif %}
{% else %}
<h3 style="text-align: center;display: block;">This album can't be bought</h3> <h3 style="text-align: center;display: block;">This album can't be bought</h3>
<p>But you can find others here:</p> <p>But you can find others here:</p>
@ -147,11 +164,15 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
{% endif %}{% break %} {% break %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
{% else %} {% else %}
<h3 style="text-align: center;display: block;">Support {{ site.name }}</h3> <h3 style="text-align: center;display: block;">Support {{ site.name }}</h3>
<p>Pay for music here:</p> <p>Pay for music here:</p>
<div class="streamer"> <div class="streamer">
@ -170,7 +191,5 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
{% endif %} {% endif %}
</section> </section>