remove hardcoded fontstyle and fix track duration

This commit is contained in:
Set Hallstrom 2020-07-28 11:59:32 +02:00
parent 1ccae56170
commit a9d285c464
5 changed files with 17 additions and 15 deletions

View file

@ -104,7 +104,7 @@ lang: en
</div>
</div>
<div class="content" style="font-family: monospace;font-size: 16px;margin-top:60px;">
<div class="content" style="font-size: 16px;margin-top:60px;">
{% for post in site.posts %}
{% if post.album == page.slug %}
{{ post.content }}

View file

@ -94,14 +94,14 @@
<div class="plItem">
<div class="plNum">{{ track.common.track.no }}.</div>
<div class="plTitle"><a href="{{ site.mediaurl }}/{{ track.albumSlug }}/{{ track.trackSlug }}.mp3" target="_blank" rel="noopener">{{ track.common.title }} </a></div>
<div class="plLength">{% 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 }}</div>
<div class="plLength">{% 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 }}</div>
</div>
{% endfor %}
</div>
</div>
<div class="content editable" style="font-family: monospace;font-size: 16px;margin-top:60px;">
<div class="content editable" style="font-size: 16px;margin-top:60px;">
{{ content }}
</div>
</div>
@ -120,7 +120,7 @@
<div class="content">
<h3>{{ track.common.title }}</h3>
<p>
{% 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 }}
<br /><strong>{{ track.common.genre }}</strong>
<br />{{ track.common.year }}</p>

View file

@ -56,15 +56,15 @@ layout: default
<!-- Content -->
<div class="content">
{% if page.all.UNSYNCEDLYRICS and page.all.USLT %}
<p style="font-family: monospace;font-size:16px;">
<p style="font-size:16px;">
{{ page.all.USLT.text | newline_to_br }}
</p>
{% elsif page.all.USLT and page.all.UNSYNCEDLYRICS == nil %}
<p style="font-family: monospace;font-size:16px;">
<p style="font-size:16px;">
{{ page.all.USLT.text | newline_to_br }}
</p>
{% elsif page.all.UNSYNCEDLYRICS and page.all.USLT == nil %}
<p style="font-family: monospace;font-size:16px;">
<p style="font-size:16px;">
{{ page.all.UNSYNCEDLYRICS | newline_to_br }}
</p>
{% endif %}