diff --git a/_config.yml b/_config.yml index e947b59..55d0b3f 100644 --- a/_config.yml +++ b/_config.yml @@ -18,6 +18,7 @@ banner: '/assets/img/basspistol_est_2010_square_bluegreen.jpg' icon: /siteicon.png logo: /siteicon.png mblabel: '0f83baf3-4f44-44db-9e30-d5c05d7b77b9' +mediaurl: https://media.basspistol.com/basspistol.com author: name: Basspistol diff --git a/_includes/seo.html b/_includes/seo.html index eec85cf..3891053 100644 --- a/_includes/seo.html +++ b/_includes/seo.html @@ -64,15 +64,15 @@ - + - + - + {% elsif page.collection == 'albums' %} @@ -119,16 +119,16 @@ -{% for track in page.tracks %} +{% for track in page.tracks %} {% endfor %} - + - + diff --git a/_layouts/album.html b/_layouts/album.html index 6b8bfbc..75808e9 100644 --- a/_layouts/album.html +++ b/_layouts/album.html @@ -221,7 +221,7 @@ lang: en "track": {{ track.common.track.no }}, "name": "{{ track.common.title }}", "length": "{% assign round_seconds = track.format.duration | round %}{% assign minutes = round_seconds | divided_by: 60 %}{% assign leftover_seconds = minutes | times: 60 %}{{ minutes }}:{{ round_seconds | minus: leftover_seconds }}", - "file": "https://media.basspistol.com/basspistol.com/{{ track.albumSlug }}/{{ track.trackSlug }}" + "file": "{{ site.mediaurl }}/{{ track.albumSlug }}/{{ track.trackSlug }}" }{% unless forloop.last %},{% endunless %}{% endfor %}], trackCount = tracks.length, npAction = $('#npAction'), diff --git a/_layouts/post.html b/_layouts/post.html index ebe7b84..d330ef2 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -94,7 +94,7 @@
{{ track.common.track.no }}.
-
{{ track.common.title }}
+
{{ track.common.title }}
{% assign round_seconds = track.format.duration | round %}{% assign minutes = round_seconds | divided_by: 60 %}{% assign leftover_seconds = minutes | times: 60 %}{{ minutes }}:{{ round_seconds | minus: leftover_seconds }}
@@ -131,7 +131,7 @@
- {{ track.common.title }} + {{ track.common.title }}
@@ -213,7 +213,7 @@ "track": {{ track.common.track.no }}, "name": "{{ track.common.title }}", "length": "{% assign round_seconds = track.format.duration | round %}{% assign minutes = round_seconds | divided_by: 60 %}{% assign leftover_seconds = minutes | times: 60 %}{{ minutes }}:{{ round_seconds | minus: leftover_seconds }}", - "file": "https://media.basspistol.com/basspistol.com/{{ track.albumSlug }}/{{ track.trackSlug }}" + "file": "{{ site.mediaurl }}/{{ track.albumSlug }}/{{ track.trackSlug }}" }{% unless forloop.last %},{% endunless %}{% endfor %}{% break %} {% endif %}{% endfor %}], trackCount = tracks.length, npAction = $('#npAction'), diff --git a/_layouts/track.html b/_layouts/track.html index 7002090..61bec84 100644 --- a/_layouts/track.html +++ b/_layouts/track.html @@ -5,16 +5,15 @@ layout: default {% include relBase.html %} @@ -44,23 +54,33 @@ layout: default
{% include author.html %} - {% if page.all.UNSYNCEDLYRICS != nil %}
- {% unless page.all.UNSYNCEDLYRICS == '' %}

Lyrics

{% endunless %} + {% if page.all.UNSYNCEDLYRICS and page.all.USLT %} +

+ {{ page.all.USLT.text | newline_to_br }} +

+ {% elsif page.all.USLT and page.all.UNSYNCEDLYRICS == nil %} +

+ {{ page.all.USLT.text | newline_to_br }} +

+ {% elsif page.all.UNSYNCEDLYRICS and page.all.USLT == nil %}

{{ page.all.UNSYNCEDLYRICS | newline_to_br }}

-

credits: + {% endif %} +

{{ page.all.Comment }}

- {% endif %}
- +{% for post in site.posts %} +{% if post.album == page.albumSlug %} {% include streamer.html %} +{% endif %} +{% endfor %}
@@ -77,15 +97,15 @@ layout: default
{% if page.previous.url and page.lang == page.previous.lang %} -

 {{ page.previousTrack.common.title }} +

 {{ page.previousTrack.common.title }}

{% endif %}
{% if page.next.url and page.lang == page.next.lang %} -

 {{ page.nextTrack.common.title }}

+

 {{ page.nextTrack.common.title }}

{% endif %}
@@ -98,7 +118,7 @@ layout: default {% include footer.html %} @@ -117,7 +137,7 @@ layout: default // only functional if "loop" is removed mu.pause(); mu.currentTime = 0; - loadUrl("{{ relBase }}/tracks/{{ page.nextTrack.slug }}/"); return false; + loadUrl("{{ relBase }}/albums/{{ page.nextTrack.slug }}/"); return false; }); mu.onplaying = function() { pauseButton.innerHTML = "Pause"; diff --git a/index.html b/index.html index dd74107..608a693 100644 --- a/index.html +++ b/index.html @@ -239,7 +239,7 @@ logo_image: /siteicon.png
- {{ album.title | smartify }} + {{ album.title | smartify }}