add releases permalinks and page layout
la-ninpre leobrekalini@gmail.com
Thu, 26 Aug 2021 18:48:18 +0300
22 files changed,
86 insertions(+),
24 deletions(-)
jump to
M
_config.yml
→
_config.yml
@@ -12,6 +12,7 @@ - templates
collections: music_releases: + output: true music_projects: output: true@@ -37,6 +38,12 @@ - scope:
path: "_music_projects" values: layout: "music-project" + + - scope: + path: "" + type: "music_releases" + values: + layout: "music-release" - scope: path: "assets/img"
M
_includes/music-project-release-by-year.html
→
_includes/music-project-release-by-year.html
@@ -1,4 +1,5 @@
{%- assign releases = include.releases %} +{%- assign print_author = include.print_author %} <div class="music-project-release-list"> <h2>{{ include.title }}</h2>@@ -8,7 +9,7 @@ id="{{ year_group.name }}">
<h3 class="music-project-release-year" id="{{ year_group.name }}">{{ year_group.name }}</h3> {%- for release in year_group.items -%} - {% include music-project-release-info.html release=release %} + {% include music-project-release-info.html release=release print_author=print_author %} {%- endfor -%} </div> {%- endfor -%}
M
_includes/music-project-release-info.html
→
_includes/music-project-release-info.html
@@ -1,19 +1,34 @@
{%- assign release = include.release %} +{%- assign print_author = include.print_author %} + <div class="music-project-release-info" id="{{ release.title | slugify }}"> - <h4>{{ release.title }} - {% if release.r_tag %} - <span class="music-project-release-type"> - ({{ release.type }})</span> - {% endif %} - {%- 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>{% if print_author %} + {% assign author_page = site.music_projects | + find: "title", release.author %} + <a href="{{ author_page.permalink }}">{{ release.author }}</a> + — + {% endif %} + {% if release.r_tag %} + <a href="{{ release.permalink }}"> + {{ release.title }} + </a> + {% else %} + {{ release.title }} + {% endif %} + {% if release.r_tag %} + <span class="music-project-release-type"> + ({{ release.type }})</span> + {% endif %} + {%- 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 }}
M
_layouts/music-project.html
→
_layouts/music-project.html
@@ -5,6 +5,7 @@
<!-- 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">@@ -37,17 +38,26 @@ {{ page.content | markdownify }}
</div> - {%- assign releases = site.music_releases | - where: "author", page.title | - group_by_exp: "item", "item.date | date: '%Y'" -%} + {%- 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 %} - {% include music-project-release-by-year.html title="releases" releases=releases %} + {%- 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" | - sort: "date" | group_by_exp: "item", "item.date | date: '%Y'" -%} {%- assign misc_tracks.size = misc_tracks | size %} {% unless misc_tracks.size == 0 %}
A
_layouts/music-release.html
@@ -0,0 +1,7 @@
+--- +layout: default +--- + +<!-- TODO: add album art and maybe change the whole structure --> + +{%- include music-project-release-info.html release=page %}
M
_music_projects/haelsorisk.md
→
_music_projects/haelsorisk.md
@@ -9,9 +9,15 @@ permalink: /haelsorisk/
logo: haelsorisk-logo --- -dark non-musical ensemble. +## overview -this is <span class="faint">non</span>community -of truely free <span class="faint">anti</span>art. +other than being an independent web-label, hälsorisk can be treated as +music project on it's own. additionaly it is a +<span class="with_hidden"><span class="hidden">non</span>community</span> +of truely free +<span class="with_hidden"><span class="hidden">anti</span>art</span>. + +## history -vi väntar inte dig tillbaka. +hälsorisk was created in 2015 by aaoth. it's purpose was to absorb and +unite all musical and cultural work done by me.
M
_music_releases/2015-05-28-lequalone-the-darkness.md
→
_music_releases/2015-05-28-lequalone-the-darkness.md
@@ -5,6 +5,7 @@ type: album
date: 28-05-2015 style: dark ambient r_tag: HSR-01 +permalink: /haelsorisk/lequalone/the-darkness --- first dark ambient album.
M
_music_releases/2015-06-13-akpngims-enneorth.md
→
_music_releases/2015-06-13-akpngims-enneorth.md
@@ -6,6 +6,7 @@ date: 13-06-2015
style: black ambient bandcamp: https://haelsorisk.bandcamp.com/album/enneorth r_tag: HSR-03 +permalink: /haelsorisk/akpngims/enneorth --- all is error. the great mistake. irregular.
M
_music_releases/2015-09-12-lequalone-wastelands.md
→
_music_releases/2015-09-12-lequalone-wastelands.md
@@ -6,6 +6,7 @@ date: 12-09-2015
style: dark ambient bandcamp: https://haelsorisk.bandcamp.com/album/wastelands r_tag: HSR-02 +permalink: /haelsorisk/lequalone/wastelands --- apocalyptic synthwave inspired by fallout game series.
M
_music_releases/2015-10-05-lequalone-chasm-of-psychosis.md
→
_music_releases/2015-10-05-lequalone-chasm-of-psychosis.md
@@ -5,6 +5,7 @@ type: lp
date: 05-10-2015 style: dark synthwave r_tag: HSR-05 +permalink: /haelsorisk/lequalone/chasm-of-psychosis --- chaotic synthwave lp.
M
_music_releases/2015-10-26-lequalone-soul-ocean.md
→
_music_releases/2015-10-26-lequalone-soul-ocean.md
@@ -5,7 +5,8 @@ type: album
date: 26-10-2015 style: dark synthwave bandcamp: https://haelsorisk.bandcamp.com/album/soul-ocean -r_tag: HSR-06 +r_tag: HSR-06 +permalink: /haelsorisk/lequalone/soul-ocean --- dark atmospheric synthwave.
M
_music_releases/2015-11-02-lequalone-youll-never-hear-me-again.md
→
_music_releases/2015-11-02-lequalone-youll-never-hear-me-again.md
@@ -5,6 +5,7 @@ type: ep
date: 02-11-2015 style: dark ambient r_tag: HSR-07 +permalink: /haelsorisk/lequalone/youll-never-hear-me-again --- ending ep with sample experiments.
M
_music_releases/2015-17-27-xvra-svartfeber.md
→
_music_releases/2015-17-27-xvra-svartfeber.md
@@ -5,6 +5,7 @@ type: demo
date: 27-07-2015 style: black metal raw black r_tag: HSR-04 +permalink: /haelsorisk/xvra/svartfeber --- debut demo with vocals recorded in nearby forest.
M
_music_releases/2016-08-22-xvra-save-me-from-the-life.md
→
_music_releases/2016-08-22-xvra-save-me-from-the-life.md
@@ -6,6 +6,7 @@ date: 22-08-2016
style: black metal raw black bandcamp: https://haelsorisk.bandcamp.com/album/save-me-from-the-life r_tag: HSR-09 +permalink: /haelsorisk/xvra/save-me-from-the-life --- second demo.
M
_music_releases/2016-16-18-aaock-morth-aateh-tgh-saaghth.md
→
_music_releases/2016-16-18-aaock-morth-aateh-tgh-saaghth.md
@@ -6,6 +6,7 @@ date: 18-06-2016
style: ambient abstract bandcamp: https://haelsorisk.bandcamp.com/album/aateh-tghsaaghth r_tag: HSR-08 +permalink: /haelsorisk/aaock-morth/aateh-tgh-saaghth --- it will be better if you don't know that.
M
_music_releases/2017-01-06-xvra-doedstad.md
→
_music_releases/2017-01-06-xvra-doedstad.md
@@ -6,6 +6,7 @@ date: 06-01-2017
style: black metal raw black bandcamp: https://haelsorisk.bandcamp.com/album/doedstad r_tag: HSR-10 +permalink: /haelsorisk/xvra/doedstad --- behold the silence.
M
_music_releases/2017-08-05-haelsorisk-laengtan-efter-ett-slut.md
→
_music_releases/2017-08-05-haelsorisk-laengtan-efter-ett-slut.md
@@ -6,6 +6,7 @@ date: 05-08-2017
style: acoustic dissonant bandcamp: https://haelsorisk.bandcamp.com/album/l-ngtan-efter-ett-slut r_tag: HSR-11 +permalink: /haelsorisk/laengtan-efter-ett-slut --- soundtrack to the [short-movie with the same name][1].
M
_music_releases/2018-06-30-xvra-absens.md
→
_music_releases/2018-06-30-xvra-absens.md
@@ -6,6 +6,7 @@ date: 30-06-2018
style: black metal raw black bandcamp: https://haelsorisk.bandcamp.com/album/absens r_tag: HSR-12 +permalink: /haelsorisk/xvra/absens --- dedicated to the ultimate void that was the beginning
M
_music_releases/2018-11-04-secauloruxsehi-fungi-noise.md
→
_music_releases/2018-11-04-secauloruxsehi-fungi-noise.md
@@ -6,6 +6,7 @@ date: 04-11-2018
style: chiptune lo-fi synth bandcamp: https://aaoth.bandcamp.com/album/fungi-noise r_tag: SCLRS-01 +permalink: /music/secauloruxsehi/fungi-noise --- fungi-related chiptune made with sunvox.
M
_music_releases/2018-11-08-secauloruxsehi-rot.md
→
_music_releases/2018-11-08-secauloruxsehi-rot.md
@@ -6,6 +6,7 @@ date: 08-11-2018
style: synthwave bandcamp: https://aaoth.bandcamp.com/album/rot r_tag: SCLRS-02 +permalink: /music/secauloruxsehi/rot --- electronic variations on riffs created by my friend.
M
_music_releases/2018-11-09-secauloruxsehi-aetheria.md
→
_music_releases/2018-11-09-secauloruxsehi-aetheria.md
@@ -6,6 +6,7 @@ date: 09-11-2018
style: minimal synth bandcamp: https://aaoth.bandcamp.com/album/aetheria r_tag: SCLRS-03 +permalink: /music/secauloruxsehi/aetheria --- trilogy about mysterious land of pure art.
M
_music_releases/2019-01-07-spiral-materivm-through-woods-and-despair.md
→
_music_releases/2019-01-07-spiral-materivm-through-woods-and-despair.md
@@ -6,6 +6,7 @@ date: 07-01-2019
style: post-rock bandcamp: https://sprial-materivm.bandcamp.com/album/through-woods-and-despair r_tag: HSR-13 +permalink: /music/spiral-materivm/through-woods-and-despair --- a story about mind (or mad) journeys.