2019-05-23 23:11:12 +00:00
|
|
|
<div class="song">
|
|
|
|
<p>
|
|
|
|
{%- assign isFirst = true -%}
|
|
|
|
{%- for artistName in song.artists -%}
|
2019-06-12 23:15:12 +00:00
|
|
|
{%- if isFirst == true -%}
|
|
|
|
{%- assign isFirst = false -%}
|
|
|
|
{%- else -%}
|
|
|
|
, {% comment %} Comma and space to separate artists {% endcomment %}
|
|
|
|
{%- endif -%}
|
|
|
|
{%- assign artist = site.data.artists | where: 'sname', artistName | first -%}
|
|
|
|
{%- if artist -%}
|
|
|
|
<a href="{{ artist.sname | datapage_url: 'artists' }}">{{ artist.sname }}</a>
|
|
|
|
{%- else -%}
|
|
|
|
{{ artistName }}
|
|
|
|
{%- endif -%}
|
2019-05-23 23:11:12 +00:00
|
|
|
{%- endfor -%}
|
2019-06-13 01:41:03 +00:00
|
|
|
{% comment %} Space needed {% endcomment %} - <a href="{{ site.baseurl }}/{{ song.sid | datapage_url: 'songs' }}">{{ song.sname }}</a>
|
2019-05-23 23:11:12 +00:00
|
|
|
</p>
|
|
|
|
</div>
|