aboutsummaryrefslogtreecommitdiffstats
path: root/_layouts/music-project.html
blob: 5b324556f4f6afea861af3e8945ef922fe2f6733 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
layout: default
---

<!-- TODO: add physical release links-->
<!-- TODO: prettify release display -->
<!-- TODO: add project logos -->
<!-- TODO: add sound for albums that aren't available on bandcamp -->

<div class="music-project">

    <div class="music-project-sidebar">
        <h1>{{ page.title }}</h1>
        <img id="logo"
             {%- if page.logo -%}
             src="{{ page.logo }}"
             {%- else -%}
             src="/art/logos/thumbs/{{ page.url | split: "/" | last }}-logo_thumb.png"
             {%- endif -%}
             alt="{{ page.title }} logo">
        <p>{{ page.start_date | date_to_string }}&ndash;
            {%- if page.end_date -%}
                {{ page.end_date | date_to_string }}
            {%- else -%}
                &hellip;
            {%- endif -%}
            {%- if page.status -%}
                &ensp;({{ page.status }})
            {%- endif -%}
        </p>
        <p>tags: {{ page.tags | join: ", " }}</p>
    </div>

    <div class="music-project-info">

        {{ page.content | markdownify }}

        <div class="music-project-release-list">
            <h2>releases</h2>

            {%- assign releases = site.music_releases | where: "author",
            page.title | group_by_exp: "item", "item.date | date: '%Y'" -%}
            {% for item in releases %}
                <h3>{{ item.name }}<!--year--></h3>
                {%- for release in item.items -%}
                    <div class="music-project-release-info">
                        <h4>
                            {{ release.title }} <span class="music-project-release-type">
                            ({{ release.type }})</span>
                            {%- if release.bandcamp -%}
                                <a href="{{ release.bandcamp }}"
                                   title="listen on bandcamp">
                                    <img src="/assets/img/bandcamp-icon.png"
                                         alt="listen on bandcamp"
                                         width="24px" height="24px">
                                </a>
                            {%- endif -%}
                        </h4>

                        <p>released {{ release.date | date_to_string }}
                            | <em>{{ release.style }}</em>
                        </p>

                        {{ release.content }}

                    </div>
                {%- endfor -%}
            {%- endfor -%}
        </div>
    </div>
</div>