HiddenSounds/_layouts/artist.html

21 lines
639 B
HTML
Raw Permalink Normal View History

2019-05-23 16:39:14 +00:00
---
layout: default
title: '{{ page.sname }}'
ptitle: '{{ page.sname }}'
2019-05-23 16:39:14 +00:00
---
<h2>{{ page.position }}</h2>
<h2>Songs</h2>
<ul>
{% assign filtered_songs = site.data.songs %}
2019-05-23 16:39:14 +00:00
{% for song in filtered_songs %}
{% assign found = false %}
{% for artist in song.artists %}
{% if artist == page.sname %}
{% assign found = true %}
{% endif %}
{% endfor %}
{% if found == false %} {% continue %} {% endif %}
<li><a href="{{ site.baseurl }}/songs{{ song.sid | datapage_url: songs }}">{{ song.artists | join: ", " }} - {{ song.sname }}</a></li>
2019-05-23 16:39:14 +00:00
{% endfor %}
</ul>