diff --git a/_config.yml b/_config.yml index a7d59cf..ec50285 100644 --- a/_config.yml +++ b/_config.yml @@ -62,6 +62,7 @@ collections: tracks: output: true permalink: /albums/:path/ + sort_by: common.year authors: output: false diff --git a/_layouts/track.html b/_layouts/track.html index b60b66c..6ddcee8 100644 --- a/_layouts/track.html +++ b/_layouts/track.html @@ -4,7 +4,11 @@ layout: default {% include relBase.html %} - +{% for album in site.albums %} +{% if album.slug == page.albumSlug %} +{% assign onetracker = album.tracks | size %} +{% endif %} +{% endfor %}
@@ -25,7 +29,12 @@ layout: default

{% for style in page.common.genre %}{{ style }}{% endfor %} by {{ page.common.artist }}

-

{{ page.common.year }}

+ {% for post in site.posts %} + {% if post.album == page.albumSlug %} +

From the {{ page.common.year }} {% if onetracker > 1 %}release{% else %}single{% endif %} "{{ page.common.album }}"

+ {% endif %} + {% endfor %} +

{% assign round_seconds = page.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 }}

@@ -84,16 +93,16 @@ layout: default
{% if page.previous.url %} -

 Previous

-

{{page.previous.common.title}}

+

{{ page.previous.common.title }}

{{ page.previous.description }}

{% endif %}
{% if page.next.url%} -

Next 

-

{{page.next.common.title}}

+

Next 

+

{{ page.next.common.title }}

{{ page.next.description }}

{% endif %}
@@ -129,22 +138,21 @@ layout: default
{% if page.previous.url %} - + {% endif %} + {% if page.next.url %} - + {% endif %}
+

{{ page.common.title }}

-

{{ page.common.title }}

- -