remove hardcoded fontstyle and fix track duration
This commit is contained in:
parent
1ccae56170
commit
a9d285c464
5 changed files with 17 additions and 15 deletions
|
|
@ -41,18 +41,20 @@ image: /images/pages/jack-hamilton-CMnNiQBkwBI-unsplash.jpg
|
|||
|
||||
|
||||
<p>{{ album.date | date: '%Y' }}</p>
|
||||
|
||||
{% for track in album.tracks %}
|
||||
<p style="margin-bottom: 30px; font-family: monospace;font-size: 14px">
|
||||
{% for release in site.albums %}
|
||||
{% if release.slug == album.album %}
|
||||
{% for track in release.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 != null %} |
|
||||
<span style="font-family: monospace;font-size: 14px">{{ track.common.genre }} </span>{% endif %}
|
||||
<span style="font-size: 14px">{{ track.common.genre }} </span>{% endif %}
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
{% endfor %}
|
||||
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<br />
|
||||
<ul class="actions stacked">
|
||||
<li><a href="{{ album.url }}" class="button small {% if post.category == 'releases' %}icon solid fa-volume-up{% endif %}">Cheggit!</a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue