diff --git a/_layouts/album.html b/_layouts/album.html index ab63c85..f279a3d 100644 --- a/_layouts/album.html +++ b/_layouts/album.html @@ -95,7 +95,7 @@ lang: en
{{ 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 }}:{{ 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 }}
{% endfor %} @@ -132,7 +132,7 @@ lang: en

{{ 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 }} + {% 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 }}

diff --git a/discography.html b/discography.html index c8564d0..af04a23 100644 --- a/discography.html +++ b/discography.html @@ -44,20 +44,12 @@ image: /assets/vid/discogs.jpg {% 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 }}

- + {% endfor %}