diff --git a/_includes/streamer.html b/_includes/streamer.html index 54e83b3f..1d5e31d6 100644 --- a/_includes/streamer.html +++ b/_includes/streamer.html @@ -1,6 +1,6 @@ - + {% if page.collection == 'posts' %} - + {% if page.category == 'release' %} {% if page.stores[0].name != nil %} Buy this record @@ -12,7 +12,7 @@ {% endfor %} - Stream + {% for shop in page.stores %} @@ -23,18 +23,10 @@ {% endfor %} - {% endif %} - -{% elsif page.collection == 'tracks' or page.collection == 'albums' %} - - {% if page.collection == 'albums' %} - This release can't be bought - But other releases are available here: {% else %} - This track can't be bought - But other tracks are available here: - {% endif %} + This album is not for sate + But you can find others here: {% for shop in site.data.stores %} {% if shop.download == true %} @@ -42,7 +34,95 @@ {% 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 %} + + + + + {% 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 %} + + {% endif %}{% break %} + {% endfor %} + +{% elsif page.collection == 'albums' %} + + +{% for post in site.posts %} +{% if post.album == page.slug %} +{% if post.stores[0].name != nil %} + +Buy this album + + {% 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 %} + + +{% endif %} +{% else %} + +This album can't be bought +But you can find others here: + + {% for shop in site.data.stores %} + {% if shop.download == true %} + {{ shop.name }} + {% endif %} + {% endfor %} + +{% endif %}{% break %} +{% endfor %} + {% endif %} \ No newline at end of file
But other releases are available here:
But other tracks are available here:
But you can find others here: