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">
@ -48,11 +48,12 @@
{% 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 %}
@ -71,10 +72,6 @@
{% 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>
@ -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 %} {% for post in site.posts %}
{% if post.album == page.slug %} {% if post.album == page.slug %}
{% if post.stores[0].name != nil %} {% 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,10 +144,6 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
{% endif %}
{% else %} {% 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>
@ -147,11 +164,15 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
{% endif %}{% break %} {% break %}
{% endif %}
{% endif %}
{% endfor %} {% 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>