diff options
| author | la-ninpre <leobrekalini@gmail.com> | 2021-08-19 00:22:00 +0300 |
|---|---|---|
| committer | la-ninpre <leobrekalini@gmail.com> | 2021-08-19 00:22:00 +0300 |
| commit | 9dcaf807a98362a708136284534ee343dd3f2742 (patch) | |
| tree | 1dce7891fb881d01516296511445059f97e91cac /_layouts | |
| parent | 275316f5ed205e77137b045c0c5fba603a2fc0b0 (diff) | |
| download | aaoth.xyz-9dcaf807a98362a708136284534ee343dd3f2742.tar.gz aaoth.xyz-9dcaf807a98362a708136284534ee343dd3f2742.zip | |
add info about music projects
much of stuff included here is subject to change.
Diffstat (limited to '_layouts')
| -rw-r--r-- | _layouts/music-project.html | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/_layouts/music-project.html b/_layouts/music-project.html new file mode 100644 index 0000000..b21b269 --- /dev/null +++ b/_layouts/music-project.html @@ -0,0 +1,70 @@ +--- +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="/assets/img/{{ page.title }}-logo.png" + {%- endif -%} + alt="{{ page.title }} logo"> + <p>{{ page.start_date | date_to_string }}– + {%- if page.end_date -%} + {{ page.end_date | date_to_string }} + {%- else -%} + … + {%- endif -%} + {%- if page.status -%} +  ({{ page.status }}) + {%- endif -%} + </p> + <p>tags: {{ page.tags | join: ", " }}</p> + </div> + + <div class="music-project-info"> + + {{ page.content | markdownify }} + + <div class="music-releases"> + <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-release"> + <h4> + {{ release.title }} ({{ release.type }}) + {%- 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> |
