streamer on aother pages

This commit is contained in:
sakrecoer 2020-07-06 12:33:06 +02:00
parent bc43df5e6e
commit a39805b2be

View file

@ -3,7 +3,7 @@
{% if page.category == 'release' %}
{% if page.stores[0].name != nil %}
<h3 style="text-align: center;display: block;">Buy this record</h3>
<h3 style="text-align: center;display: block;">Buy this release</h3>
<div class="streamer">
{% for shop in page.stores %}
{% if shop.download == true %}
@ -25,7 +25,7 @@
{% else %}
<h3 style="text-align: center;display: block;">This album is not for sate</h3>
<h3 style="text-align: center;display: block;">This release can't be bought</h3>
<p>But you can find others here:</p>
<div class="streamer">
{% for shop in site.data.stores %}
@ -34,6 +34,15 @@
{% endif %}
{% endfor %}
</div>
<h3 style="text-align: center;display: block;">&nbsp;</h3>
<div class="streamer">
{% for shop in site.data.stores %}
{% if shop.download != true %}
<a onclick="_paq.push(['trackEvent', 'StoreLink', '{{ shop.name | remove: " " }}']);" target="_blank" rel="noopener" href="{{ shop.url }}" alt="Stream from {{ shop.name }}" title="Stream from {{ shop.name }}" class="button icon brands {{ shop.icon }}">{{ shop.name }}</a>
{% endif %}
{% endfor %}
</div>
{% endif %}
{% endif %}
@ -70,6 +79,15 @@
<h3 style="text-align: center;display: block;">This track can't be bought</h3>
<p>But you can find others here:</p>
<div class="streamer">
{% for shop in site.data.stores %}
{% if shop.download == true %}
<a onclick="_paq.push(['trackEvent', 'StoreLink', '{{ shop.name | remove: " " }}']);" target="_blank" rel="noopener" href="{{ shop.url }}" alt="Stream from {{ shop.name }}" title="Stream from {{ shop.name }}" class="button icon brands {{ shop.icon }}">{{ shop.name }}</a>
{% endif %}
{% endfor %}
</div>
<h3 style="text-align: center;display: block;">&nbsp;</h3>
<div class="streamer">
{% for shop in site.data.stores %}
{% if shop.download == true %}
@ -121,8 +139,35 @@
{% endif %}
{% endfor %}
</div>
<h3 style="text-align: center;display: block;">&nbsp;</h3>
<div class="streamer">
{% for shop in site.data.stores %}
{% if shop.download != true %}
<a onclick="_paq.push(['trackEvent', 'StoreLink', '{{ shop.name | remove: " " }}']);" target="_blank" rel="noopener" href="{{ shop.url }}" alt="Stream from {{ shop.name }}" title="Stream from {{ shop.name }}" class="button icon brands {{ shop.icon }}">{{ shop.name }}</a>
{% endif %}
{% endfor %}
</div>
{% endif %}{% break %}
{% endfor %}
{% else %}
<h3 style="text-align: center;display: block;">Support {{ site.name }}</h3>
<p>Pay for music here:</p>
<div class="streamer">
{% for shop in site.data.stores %}
{% if shop.download == true %}
<a onclick="_paq.push(['trackEvent', 'StoreLink', '{{ shop.name | remove: " " }}']);" target="_blank" rel="noopener" href="{{ shop.url }}" alt="Stream from {{ shop.name }}" title="Stream from {{ shop.name }}" class="button icon brands {{ shop.icon }}">{{ shop.name }}</a>
{% endif %}
{% endfor %}
</div>
<h3 style="text-align: center;display: block;">&nbsp;</h3>
<div class="streamer">
{% for shop in site.data.stores %}
{% if shop.download != true %}
<a onclick="_paq.push(['trackEvent', 'StoreLink', '{{ shop.name | remove: " " }}']);" target="_blank" rel="noopener" href="{{ shop.url }}" alt="Stream from {{ shop.name }}" title="Stream from {{ shop.name }}" class="button icon brands {{ shop.icon }}">{{ shop.name }}</a>
{% endif %}
{% endfor %}
</div>
{% endif %}
</section>