diff --git a/_layouts/album.html b/_layouts/album.html index 950556d..c8f0133 100644 --- a/_layouts/album.html +++ b/_layouts/album.html @@ -104,7 +104,7 @@ lang: en -
- {% 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 }}
+ {% assign round_seconds = track.format.duration | round %}{% assign minutes = round_seconds | divided_by: 60 %}{% assign leftover_seconds = minutes | times: 60 %}{{ minutes }}:{% assign seconds_without_zero = round_seconds | minus: leftover_seconds %}{% if seconds_without_zero < 10 %}0{% endif %}{{ seconds_without_zero }}
{{ track.common.genre }}
{{ track.common.year }}
+
{{ 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 }}
{% endif %} diff --git a/discography.html b/discography.html index a03581f..66858f4 100644 --- a/discography.html +++ b/discography.html @@ -41,18 +41,20 @@ image: /images/pages/jack-hamilton-CMnNiQBkwBI-unsplash.jpg{{ album.date | date: '%Y' }}
- - {% for track in album.tracks %} -+ {% for release in site.albums %} + {% if release.slug == album.album %} + {% for track in release.tracks %} +
{{ track.common.track.no }}. {{ track.common.title }}
{% assign round_seconds = track.format.duration | round %}{% assign minutes = round_seconds | divided_by: 60 %}{% assign leftover_seconds = minutes | times: 60 %}{{ minutes }}:{% assign seconds_without_zero = round_seconds | minus: leftover_seconds %}{% if seconds_without_zero < 10 %}0{% endif %}{{ seconds_without_zero }}{% if track.common.genre != null %} |
- {{ track.common.genre }} {% endif %}
+ {{ track.common.genre }} {% endif %}
{{ album.date | date: '%Y' }}
{% for track in album.tracks %} -+
{{ track.common.track.no }}. {{ track.common.title }}
{% assign round_seconds = track.format.duration | round %}{% assign minutes = round_seconds | divided_by: 60 %}{% assign leftover_seconds = minutes | times: 60 %}{{ minutes }}:{% assign seconds_without_zero = round_seconds | minus: leftover_seconds %}{% if seconds_without_zero < 10 %}0{% endif %}{{ seconds_without_zero }} |
- {{ track.common.genre }}
+ {{ track.common.genre }}