aboutsummaryrefslogtreecommitdiffstats
path: root/_layouts
diff options
context:
space:
mode:
authorla-ninpre <leobrekalini@gmail.com>2021-08-26 13:22:51 +0300
committerla-ninpre <leobrekalini@gmail.com>2021-08-26 13:22:51 +0300
commit26156bc9b19fe02a6679f741c9d936aad18a2e85 (patch)
tree999d2381b2a92b95b948ec2e5fef16f2abfa3fff /_layouts
parentc953977332864c2499cb776970ab98934268adca (diff)
downloadaaoth.xyz-26156bc9b19fe02a6679f741c9d936aad18a2e85.tar.gz
aaoth.xyz-26156bc9b19fe02a6679f741c9d936aad18a2e85.zip
add track info and templates
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/music-project.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/_layouts/music-project.html b/_layouts/music-project.html
index fdf1f0c..b07f4b8 100644
--- a/_layouts/music-project.html
+++ b/_layouts/music-project.html
@@ -70,6 +70,32 @@ layout: default
/ <em>{{ release.style }}</em>
</p>
+ {%- unless release.type == "track" -%}
+ <h5>tracklist</h5>
+ <div class="music-project-tracklist">
+ {%- assign release_tracks = site.music_titles |
+ where: "r_tag", release.r_tag | sort: "num" -%}
+ <ol>
+ {% for track in release_tracks %}
+ <li>
+ {% if release.author == track.author %}
+ {{ track.title }}
+ {% else %}
+ {% assign t_a_has_url = site.music_projects | find: "title", track.author %}
+ {% if t_a_has_url %}
+ <a href="{{ t_a_has_url.url }}">
+ {{ track.author }}</a>
+ {% else %}
+ {{ track.author }}
+ {% endif %}
+ &mdash; {{ track.title }}
+ {% endif %}
+ </li>
+ {% endfor %}
+ </ol>
+ </div>
+ {%- endunless -%}
+
{{ release.content }}
</div>