From 2f0ab293cffb9d8d68afaff36c30234422b0cc2a Mon Sep 17 00:00:00 2001 From: Set Hallstrom Date: Tue, 28 Jul 2020 12:50:11 +0200 Subject: [PATCH] update streamer --- _includes/streamer.html | 244 +++++++++++++++++++++++----------------- _posts/_defaults.md | 1 + 2 files changed, 139 insertions(+), 106 deletions(-) diff --git a/_includes/streamer.html b/_includes/streamer.html index 8a4aef1d..4e5c8098 100644 --- a/_includes/streamer.html +++ b/_includes/streamer.html @@ -1,173 +1,205 @@ -
-{% if page.collection == 'posts' %} - {% if page.category == 'release' %} - {% if page.stores[0].name != nil %} -

Buy this release

+{% if page.collection == 'posts' %} +{% if page.category == 'releases' %} +{% if page.check_this_if_cannot_be_bought == false %} +
+

Get this release

+
+ {% for shop in page.stores %} + {% if shop.download == true %} + {{ shop.name }} + {% endif %} + {% endfor %} +
+ +

Stream it, follow, like and subscribe!

+
+ + {% for shop in page.stores %} + {% if shop.download != true %} + + {{ shop.name }} + {% endif %} + {% endfor %} +
+
+{% else %} +
+

This release can't be obtained

+

Stream, follow, like and subscribe!

+
+ {% for shop in site.data.stores %} + {% if shop.download == true %} + {{ shop.name }} + {% endif %} + {% endfor %} +
+

 

+ +
+ {% for shop in site.data.stores %} + {% if shop.download != true %} + {{ shop.name }} + {% endif %} + {% endfor %} +
+
+{% endif %} +{% else %} +{% if page.check_this_if_cannot_be_bought == false %} +
+

Get this release

{% for shop in page.stores %} {% if shop.download == true %} - {{ shop.name }} + {{ shop.name }} {% endif %} {% endfor %}
-

 

+

Stream it, follow, like and subscribe!

{% for shop in page.stores %} {% if shop.download != true %} - {{ shop.name }} + {{ shop.name }} {% endif %} {% endfor %}
+
+{% else %} +{% endif %} +{% endif %} - {% else %} -

This release can't be bought

-

But you can find others here:

-
- {% for shop in site.data.stores %} - {% if shop.download == true %} - {{ shop.name }} - {% endif %} - {% endfor %} -
-

 

- -
- {% for shop in site.data.stores %} - {% if shop.download != true %} - {{ shop.name }} - {% endif %} - {% endfor %} -
- {% endif %} - {% endif %} - {% elsif page.collection == 'tracks' %} - {% for post in site.posts %} - {% if post.album == page.albumSlug %} - {% if post.stores[0].name != nil %} - -

Buy this Track

-
- {% for shop in post.stores %} - {% if shop.download == true %} - {{ shop.name }} - {% endif %} - {% endfor %} -
- -

 

-
- - {% for shop in post.stores %} - {% if shop.download != true %} - - {{ shop.name }} - {% endif %} - {% endfor %} -
- +
+{% for post in site.posts %} +{% if post.album == page.albumSlug %} +{% if post.check_this_if_cannot_be_bought == false %} +

Get this track

+
+ {% for shop in post.stores %} + {% if shop.download == true %} + {{ shop.name }} {% endif %} - {% else %} - -

This track can't be bought

-

But you can find others here:

-
- {% for shop in site.data.stores %} - {% if shop.download == true %} - {{ shop.name }} - {% endif %} - {% endfor %} -
-

 

- -
- {% for shop in site.data.stores %} - {% if shop.download != true %} - {{ shop.name }} - {% endif %} - {% endfor %} -
- {% endif %}{% break %} {% endfor %} +
+ +

Stream it, follow, like and subscribe!

+
+ + {% for shop in post.stores %} + {% if shop.download != true %} + + {{ shop.name }} + {% endif %} + {% endfor %} +
+{% else %} + +

This track can't be obtained

+

Stream, follow, like and subscribe!

+
+ {% for shop in site.data.stores %} + {% if shop.download == true %} + {{ shop.name }} + {% endif %} + {% endfor %} +
+

 

+ +
+ {% for shop in site.data.stores %} + {% if shop.download != true %} + {{ shop.name }} + {% endif %} + {% endfor %} +
+{% break %} + +{% endif %} +{% endif %} +{% endfor %} +
{% elsif page.collection == 'albums' %} - +
{% for post in site.posts %} {% if post.album == page.slug %} -{% if post.stores[0].name != nil %} +{% if post.check_this_if_cannot_be_bought == false %} -

Buy this album

+

Get this album

{% for shop in post.stores %} {% if shop.download == true %} - {{ shop.name }} + {{ shop.name }} {% endif %} {% endfor %}
-

 

+

Stream it, follow, like and subscribe!

{% for shop in post.stores %} {% if shop.download != true %} - {{ shop.name }} + {{ shop.name }} {% endif %} {% endfor %}
- - - -{% endif %} {% else %} -

This album can't be bought

-

But you can find others here:

+

This album can't be obtained

+

Stream, follow, like and subscribe!

{% for shop in site.data.stores %} {% if shop.download == true %} - {{ shop.name }} + {{ shop.name }} {% endif %} {% endfor %}
-

 

+

 

{% for shop in site.data.stores %} {% if shop.download != true %} - {{ shop.name }} + {{ shop.name }} {% endif %} {% endfor %}
-{% endif %}{% break %} +{% break %} + +{% endif %} +{% endif %} {% endfor %} + +
+ {% else %} -

Support {{ site.name }}

-

Pay for music here:

+
+

Support {{ site.title }}

+

Stream, follow, like and subscribe!

- {% for shop in site.data.stores %} - {% if shop.download == true %} - {{ shop.name }} - {% endif %} - {% endfor %} +{% for shop in site.data.stores %} +{% if shop.download == true %} +{{ shop.name }} +{% endif %} +{% endfor %}
-

 

+

 

- {% for shop in site.data.stores %} - {% if shop.download != true %} - {{ shop.name }} - {% endif %} - {% endfor %} -
+{% for shop in site.data.stores %} +{% if shop.download != true %} +{{ shop.name }} +{% endif %} +{% endfor %} + +
{% endif %} -
\ No newline at end of file diff --git a/_posts/_defaults.md b/_posts/_defaults.md index 69e6d8eb..c19bd7f6 100644 --- a/_posts/_defaults.md +++ b/_posts/_defaults.md @@ -6,6 +6,7 @@ image: category: credits: '' album: +check_this_if_cannot_be_bought: false stores: - name: url: