all repos — aaoth.xyz @ 9f1447f3040ef38740cdcdd855cc2dd076156de4

aaoth.xyz website

_layouts/music-project.html (view raw)

 1---
 2layout: default
 3---
 4
 5<!-- TODO: add physical release links-->
 6<!-- TODO: add sound for albums that aren't available on bandcamp -->
 7<!-- TODO: maybe add search by tag for music projects -->
 8
 9<div class="music-project">
10
11    <div class="music-project-titlebar">
12        {% include title-with-backlink.html title=page.title backlink="/music/" %}
13    </div>
14
15    <div class="music-project-sidebar">
16        <a href="/art/logos/{{ page.url | split: "/" | last }}-logo.png">
17            <img id="logo"
18                 src="/art/logos/thumbs/{{ page.url | split: "/" | last }}-logo_thumb.png"
19                 alt="{{ page.title }} logo">
20        </a>
21        <p>{{ page.start_date | date_to_string }}&ndash;
22            {%- if page.end_date -%}
23                {{ page.end_date | date_to_string }}
24            {%- else -%}
25                &hellip;
26            {%- endif -%}
27            {%- if page.status -%}
28                &ensp;({{ page.status }})
29            {%- endif -%}
30        </p>
31        <p>tags: {{ page.tags | join: ", " }}</p>
32    </div>
33
34    <div class="music-project-info">
35
36        {{ page.content | markdownify }}
37
38    </div>
39
40    {%- assign releases = site.music_releases |
41    where: "author", page.title |
42    group_by_exp: "item", "item.date | date: '%Y'" -%}
43    {%- assign releases.size = releases | size %}
44    {% unless releases.size == 0 %}
45        {% include music-project-release-by-year.html title="releases" releases=releases %}
46    {% endunless %}
47
48    {%- assign misc_tracks = site.music_titles |
49    where_exp: "item", "item.author == page.title and item.r_tag == nil" |
50    sort: "date" |
51    group_by_exp: "item", "item.date | date: '%Y'" -%}
52    {%- assign misc_tracks.size = misc_tracks | size %}
53    {% unless misc_tracks.size == 0 %}
54        {% include music-project-release-by-year.html title="misc tracks" releases=misc_tracks %}
55    {% endunless %}
56</div>