make use of include.variable to make project list
la-ninpre leobrekalini@gmail.com
Mon, 23 Aug 2021 20:03:19 +0300
2 files changed,
5 insertions(+),
11 deletions(-)
M
_includes/music-projects-list.html
→
_includes/music-projects-list.html
@@ -1,5 +1,5 @@
<ul class="music-project-list"> -{% for project in projects %} +{% for project in include.projects %} <li class="music-project-list-item"> <a class="music-project-list-item-mask" href="{{ project.url }}">
M
music.md
→
music.md
@@ -9,24 +9,18 @@ **hälsorisk** (swedish for '*health hazard*') is small web-label focused on dark
underground music. here's a list of projects in which i took part: -{% comment %} - haelsorisk projects -{% endcomment %} -{% assign projects = site.music_projects | where: "other", nil %} +{% assign haelsorisk_projects = site.music_projects | where: "other", nil %} <div class="haelsorisk-projects-list"> -{% include music-projects-list.html %} +{% include music-projects-list.html projects=haelsorisk_projects%} </div> [1]:/haelsorisk # other projects -{% comment %} - other projects -{% endcomment %} -{% assign projects = site.music_projects | where: "other", true %} +{% assign other_projects = site.music_projects | where: "other", true %} <div class="other-projects-list"> -{% include music-projects-list.html %} +{% include music-projects-list.html projects=other_projects %} </div>