From d8de3947a7c3320969bb83fd990278c10928a469 Mon Sep 17 00:00:00 2001 From: Set Hallstrom Date: Mon, 30 Nov 2020 01:27:41 +0100 Subject: [PATCH] minor formatting --- discography.html | 20 ++------------------ index.html | 10 +++++----- 2 files changed, 7 insertions(+), 23 deletions(-) diff --git a/discography.html b/discography.html index 62bd9b1..f368114 100644 --- a/discography.html +++ b/discography.html @@ -31,28 +31,12 @@ layout: default
-

{{ album.title }}

- - - -

{{ 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 }} - {% if track.common.genre %} | {{ track.common.genre }} {% endif %} -

- - - - {% endfor %} +

{{ album.title }} ({{ album.date | date: '%Y' }})

+

by {{ album.artists }}

-

🔊 play this release

-
diff --git a/index.html b/index.html index 3b3cd2c..a5fed88 100644 --- a/index.html +++ b/index.html @@ -88,7 +88,7 @@ layout: default Cover art for {{ post.title }}
- {{ album.name }}
+ {{ album.name }} ({{ album.date | date: '%Y' }})
{% assign total = 0 %} {% for track in album.tracks %} @@ -96,12 +96,12 @@ layout: default {% endfor %} - {% assign round_seconds = total | 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 }} - -
+ {% assign round_seconds = total | round %}{% assign minutes = round_seconds | divided_by: 60 %}{% assign leftover_seconds = minutes | times: 60 %}{{ minutes }}m{% assign seconds_without_zero = round_seconds | minus: leftover_seconds %}{% if seconds_without_zero < 10 %}0{% endif %}{{ seconds_without_zero }}s + - {{ album.date | date: '%Y' }} + +