better streamer mechanism

This commit is contained in:
Set Hallstrom 2020-07-21 12:47:49 +02:00
parent 7c09441587
commit ac9e6b1461

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 != '' %} {% if page.check_this_if_cannot_be_bought == false %}
<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">
@ -51,7 +51,7 @@
{% 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 != '' %} {% if post.check_this_if_cannot_be_bought == false %}
<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">
@ -98,32 +98,13 @@
{% 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 != '' %} {% if post.check_this_if_cannot_be_bought == false %}
<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">