diff options
| author | la-ninpre <leobrekalini@gmail.com> | 2021-08-26 19:07:45 +0300 |
|---|---|---|
| committer | la-ninpre <leobrekalini@gmail.com> | 2021-08-26 19:20:04 +0300 |
| commit | d548d4a900024352a033e2b4523bb7f272b26a6f (patch) | |
| tree | 1d7bd088eeefef367cb5cac026d08a31c01716f7 /_layouts/music-project.html | |
| parent | 7ac5dbeb4f9329dbd75e42c800b8afc8b58d552d (diff) | |
| parent | af529b0371bfe9fa2039fb6bce5deadbb7c0c76b (diff) | |
| download | aaoth.xyz-d548d4a900024352a033e2b4523bb7f272b26a6f.tar.gz aaoth.xyz-d548d4a900024352a033e2b4523bb7f272b26a6f.zip | |
merge branch 'music-projects'
music info is messed up now, but kinda works
Diffstat (limited to '_layouts/music-project.html')
| -rw-r--r-- | _layouts/music-project.html | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/_layouts/music-project.html b/_layouts/music-project.html new file mode 100644 index 0000000..d9382b5 --- /dev/null +++ b/_layouts/music-project.html @@ -0,0 +1,66 @@ +--- +layout: default +--- + +<!-- TODO: add physical release links--> +<!-- TODO: add sound for albums that aren't available on bandcamp --> +<!-- TODO: maybe add search by tag for music projects --> +<!-- TODO: add album art --> + +<div class="music-project"> + + <div class="music-project-titlebar"> + {% include title-with-backlink.html title=page.title backlink="/music/" %} + </div> + + <div class="music-project-sidebar"> + <a href="/art/logos/{{ page.url | split: "/" | last }}-logo.png"> + <img id="logo" + src="/art/logos/thumbs/{{ page.url | split: "/" | last }}-logo_thumb.png" + alt="{{ page.title }} logo"> + </a> + <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> + + {%- if page.title == "hälsorisk" %} + {%- assign releases = site.music_releases | + where_exp: "item", "item.r_tag contains 'HSR'" | + group_by_exp: "item", "item.date | date: '%Y'" -%} + {%- else %} + {%- assign releases = site.music_releases | + where: "author", page.title | + group_by_exp: "item", "item.date | date: '%Y'" -%} + {%- endif -%} + {%- assign releases.size = releases | size %} + {% unless releases.size == 0 %} + {%- if page.title == "hälsorisk" %} + {% include music-project-release-by-year.html title="releases" releases=releases print_author=true %} + {% else %} + {% include music-project-release-by-year.html title="releases" releases=releases %} + {% endif %} + {% endunless %} + + {%- assign misc_tracks = site.music_titles | + where_exp: "item", "item.author == page.title and item.r_tag == nil" | + group_by_exp: "item", "item.date | date: '%Y'" -%} + {%- assign misc_tracks.size = misc_tracks | size %} + {% unless misc_tracks.size == 0 %} + {% include music-project-release-by-year.html title="misc tracks" releases=misc_tracks %} + {% endunless %} +</div> |
