minor formatting

This commit is contained in:
Set Hallstrom 2020-11-30 01:27:41 +01:00
parent 5001739748
commit d8de3947a7
2 changed files with 7 additions and 23 deletions

View File

@ -31,28 +31,12 @@ layout: default
<div class="description">
<div class="container">
<div>
<h2>{{ album.title }}</h2>
<p>{{ album.date | date: '%Y' }}</p>
{% for track in album.tracks %}
<p style="margin-bottom: 30px;font-size: 14px">
<strong>{{ track.common.track.no }}. {{ track.common.title }}</strong><br />
<span>{% 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 }}</span>
{% if track.common.genre %} | <span style="font-size: 14px">{{ track.common.genre }} </span>{% endif %}
</p>
{% endfor %}
<h2>{{ album.title }} ({{ album.date | date: '%Y' }})</h2>
<h3>by {{ album.artists }} </h3>
</div>
<div>
<p><a class="button" href="{{ relBase }}{{ post.url }}">🔊 play this release</a></p>
</div>
</div>
</div>

View File

@ -88,7 +88,7 @@ layout: default
<a href="{{ post.url }}">
<img src="{{ site.mediaurl }}/{{ album.tracks[0].slug }}.jpeg" alt="Cover art for {{ post.title }}" /></a>
<figcaption>
<strong>{{ album.name }}</strong><br />
<strong>{{ album.name }}</strong> ({{ album.date | date: '%Y' }})<br />
{% 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 }}
<br />
{% 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' }}
</figcaption>
</figure>
</article>